亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

嘗試更改燒瓶應用程序的 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 關注
  • 100 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號