如何更改col-xs引导程序的宽度? [英] How to change the width for the col-xs bootstrap?

查看:116
本文介绍了如何更改col-xs引导程序的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我无处可更改col-xs-12的默认值

Hey I find nowhere if I can change the default value of col-xs-12

我试图放那个,但我都坏了...

I tried to put that but I all broken...

.col-xs-12 {
	width: 600px;
}

如果您是一名文档医生,我可以在其中找到非常棒的答案!

If you are a doc where I can find the answer that will be really awesome !

Thx

推荐答案

如果要更改任何 col-类只需在该元素的相同元素和样式上再添加一个类,并且您的外部CSS文件应在引导后加载,因此css文件具有
的作用:

Never Change Bootstrap classes if you want to change any col- class simply add one more class on same element and style that class, and your external CSS file should be loaded after bootstrap, so the css file has effect Example:

<div class="col-xs-12 my-custom-width"></div>

<style>
    .my-custom-width{
       width:600px;
    }

</style>

这篇关于如何更改col-xs引导程序的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆