如何覆盖在Twitter Bootstrap中的样式 [英] How to overwrite styling in Twitter Bootstrap

查看:145
本文介绍了如何覆盖在Twitter Bootstrap中的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何覆盖Twitter Bootstrap中的样式?例如,我目前使用一个.sidebar类,它有CSS规则float:left;我如何改变它,使它向右?

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屋!

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