gpt4 book ai didi

html - CSS 背景图像无法在视口(viewport)下方重复

转载 作者:行者123 更新时间:2023-11-28 18:10:15 27 4
gpt4 key购买 nike

我们在 www.tekiki.com 上重复纹理背景,但由于某种原因,视口(viewport)下方的任何内容都不会重复。背景呈现为白色。

以下是我们的 body 元素的 CSS 规则,其中包含重复图像:

font-family: 'Signika', verdana, tahoma, arial, sans-serif;
font-size: 16px;
line-height: 22px;
color: #5c5c5c;
margin: 0;
padding: 0;
border: 0;
background: #cbe9f1 url(/images/web/main_bg.png) repeat top left;
background-attachment: fixed;

我们如何让背景图像正确平铺?谢谢!

最佳答案

尝试将 background-attachment: fixed 更改为 background-position: fixed

关于html - CSS 背景图像无法在视口(viewport)下方重复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18807370/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com