如何在 Twitter Bootstrap 中覆盖样式 [英] How to overwrite styling in Twitter Bootstrap
本文介绍了如何在 Twitter Bootstrap 中覆盖样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何覆盖 Twitter Bootstrap 中的样式?例如,我目前使用的 .sidebar 类具有 CSS 规则float: left;"我怎样才能改变它,让它向右转?我正在使用 HAML 和 SASS,但我对网络开发比较陌生.
How can I overwrite the stylings in Twitter Bootstrap? For instance, I am currently using a .sidebar class that has the CSS rule 'float: left;' How can I change this so that it goes to the right instead? I'm using HAML and SASS but am relatively new to web development.
推荐答案
添加自己的类,例如:<div class="sidebar right"></div>
,使用CSS为
Add your own class, ex: <div class="sidebar right"></div>
, with the CSS as
.sidebar.right {
float:right
}
这篇关于如何在 Twitter Bootstrap 中覆盖样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文