twitter-bootstrap 如何更改大屏幕上的背景颜色?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30425228/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 22:42:58  来源:igfitidea点击:

How to change background color on jumbotron?

htmlcsstwitter-bootstrap

提问by laurence keith albano

I have this html code:

我有这个 html 代码:

<div class="jumbotron">
    <h1>Eye Of Heaven v3.0</h1>
</div>

I have tried this css code, it's not working and no effect. What's the proper way to apply it?

我试过这个 css 代码,它不起作用,也没有效果。应用它的正确方法是什么?

.jumbotron{
    background-color:##8A2BE2;
    text-align:center;
}

回答by MatthieuLemoine

You made a typo mistake:

你犯了一个错字错误:

background-color: ##8A2BE2

background-color: ##8A2BE2

instead of

代替

background-color: #8A2BE2

background-color: #8A2BE2

回答by User_3535

try this

试试这个

.jumbotron
{
background-color:#A05F5F;
}

hange background color on jumbotron

在大屏幕上悬挂背景颜色

回答by Joish

so simple:
<div class="jumbotron" style="background-color:#ffffff">
        ......
    </div>