为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

HUWWW 2022-10-13 16:39:34
我使用在网上找到的模板创建了一个烧瓶应用程序。我不精通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;}
查看完整描述

1 回答

?
12345678_0001

TA贡献1802条经验 获得超5个赞

您可以尝试添加 !important 以覆盖模板中的背景。它看起来像这样

background-image:none !important;
background-color: #e6e6e6 !important;


查看完整回答
反对 回复 2022-10-13
  • 1 回答
  • 0 关注
  • 112 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号