我使用在網上找到的模板創建了一個燒瓶應用程序。我不精通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;}
嘗試更改燒瓶應用程序的 CSS 中的背景漸變
HUWWW
2022-10-13 16:39:34