尝试更改烧瓶应用程序的 CSS 中的背景渐变

我使用在网上找到的模板创建了一个烧瓶应用程序。我不精通html或css。调用应用程序后,我意识到网页的背景有一个由红到蓝的渐变,我想将其更改为常规的深蓝色。您能否让我知道我可以在代码中的哪个位置执行此操作。代码粘贴在下面。提前致谢。


我尝试在多个地方将 background-image 更改为 none 并将背景更改为 #e6e6e6 (代表我想要的蓝色),但它仍然不起作用


@import url(https://fonts.googleapis.com/css?family=Open+Sans);

.btn { display: inline-block; *display: inline; *zoom: 1; padding: 4px 10px 4px; margin-bottom: 0; font-size: 13px; line-height: 18px; color: #333333; text-align: center;text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); vertical-align: middle; background-color: #00008B; }

.btn-large { padding: 9px 14px; font-size: 15px; line-height: normal; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }

.btn:hover { color: #333333; text-decoration: none; background-color: #e6e6e6; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -ms-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; }

.btn-primary, .btn-primary:hover { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); color: #ffffff; }

.btn-primary.active { color: rgba(255, 255, 255, 0.75); }

.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { filter: none; background-color: #4a77d4; }

.btn-block { width: 100%; display:block; }


* { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; -ms-box-sizing:border-box; -o-box-sizing:border-box; box-sizing:border-box; }


html { width: 100%; height:100%; overflow:scroll; }


body { 

    width: 100%;

    height:100%;

    font-family: 'Open Sans', sans-serif;

    background-image: none;

    background-color: #e6e6e6;

    color: #fff;

    font-size: 18px;

    text-align:center;

    letter-spacing:1.2px;


}


HUWWW
浏览 113回答 1
1回答

12345678_0001

您可以尝试添加 !important 以覆盖模板中的背景。它看起来像这样background-image:none !important; background-color: #e6e6e6 !important;
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript