我一直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