php - 为什么我的背景图像在不同的屏幕尺寸上不断变化?
问题描述
我网站的背景图片在页面调整大小时不断变化。我似乎无法弄清楚它为什么这样做。这是我的代码:
header {
background-image: url('../img/header-bg.jpg');
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
text-align: center;
color: white;
}
解决方案
推荐阅读
- python - Controlling Kodi from Browser
- rust - Issues with Rust timelines and ownerships
- javascript - Catching errors from callback handlers
- postgresql - How do copy row from one table to another with dependencies?
- python - print statement won't print value of my variable
- javascript - Strange behaviour with jquery load function
- python - 向烧瓶宁静的应用程序发出请求时出现问题
- c# - 使用 Windows 10 IoT Core 通过 I2C 向 PIC16F1503 发送命令
- python - How to fix in
Error for my neural network? - android - Problem passing information from activities