我正在使用引导程序库来创建我的网站,并且我想使用CSS来修改pare布局的某些部分,例如背景色和超大屏幕的颜色,但是没有任何东西可以使该工作正常。
如何将CSS与Bootstrap一起使用。
.jumbotron
{
background-color:red !important;
}
#body
{
background-color:black;
}
<body>
<div class="body">
<div class="jumbotron">
<div class="container text-center">
<p>"Quote goes here"</p>
<h1>Site name</h1>
<p>Motto and slogan goes here</p>
</div>
</div>
</div>
</body>
谢谢
您是否将CSS包装在样式标签中?
<style type="text/css">
.jumbotron
{
background-color:red !important;
}
body
{
background-color:black;
}
</style>
<body>
<div class="body">
<div class="jumbotron">
<div class="container text-center">
<p>"Quote goes here"</p>
<h1>Site name</h1>
<p>Motto and slogan goes here</p>
</div>
</div>
</div>
</body>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句