<分区>
<分区>
您好,我网页上的背景图像模糊不清。
body{
background: url('../images/def2.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed;
}
我从谷歌图片中获取我的图片,所以不知道质量的可靠性。
最佳答案
它们的分辨率可能低于您的屏幕,因此 background-size: cover 将它们拉伸(stretch)得过大。
关于html - CSS 背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21964702/