我一直trynig把我的網站背景內的背景。我能夠把我想要使用此代碼背景色:背景背景內
<body bgcolor="#F5F2D4">
<div class="Gallery">
<h1> Gallery </h1>
</div>
</body>
後,在CSS我做了以下
.Gallery h1 {
text-align: center;
font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
font-size: 55px;
font-style: normal;
font-variant: normal;
font-weight: 500;
line-height: 26.3999996185303px;
background-color: White;
}
背景會是這個樣子(B =米色,W =白色:
-------------------------
|BB|WWWWWWWWWWWWWWWWWW|BB|
|BB|WWWWWWWWWWWWWWWWWW|BB|
|BB|WWWWWWWWWWWWWWWWWW|BB|
|BB|WWWWWWWWWWWWWWWWWW|BB|
|BB|WWWWWWWWWWWWWWWWWW|BB|
-------------------------
這讓我在後臺想要的顏色,但它不會縮放它只有從直到白啓動瀏覽器的邊界差異的幾個像素,有沒有有沒有辦法讓距離增加?
此外,有沒有辦法讓白色背景一直向下滾動?
非常感謝。
顯示你有什麼到目前爲止已經試過。一些CSS代碼會有幫助。 – Aditya
嗯。你只是把背景放在不同的元素上。 – Quentin