如何在Twitter Bootstrap中将默认的背景色白色更改为其他颜色 [英] How to change the default background color white to something else in twitter bootstrap

查看:308
本文介绍了如何在Twitter Bootstrap中将默认的背景色白色更改为其他颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个Web应用程序,其中已使用CSS将默认颜色设置为海军蓝色。但是,当我在页面中添加twitter bootstrap css时,我没有找到海军蓝色,而是找到了twitter bootstrap提供的白色背景色。

I am building a web application where I have set my default color to navy blue using css. But when i added the twitter bootstrap css's in my page I did not find my navy blue color instead I found the white background color provided by twitter bootstrap.

我的查询是我应该在引导程序中更改CSS的哪一部分以更改页面背景。

My query is that what portion of css should I change in bootstrap to change my page's background.

推荐答案

您可以通过添加自己的CSS覆盖Bootstraps默认CSS

You can overwrite Bootstraps default CSS by adding your own rules.

<style type="text/css">
   body { background: navy !important; } /* Adding !important forces the browser to overwrite the default style applied by Bootstrap */
</style>

这篇关于如何在Twitter Bootstrap中将默认的背景色白色更改为其他颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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