【发布时间】:2016-05-13 08:37:24
【问题描述】:
我有一个严重的问题。我还没有找到解决方案,所以我希望你知道。
我正在做网站。我需要制作响应式封面背景图片。(覆盖整个页面)。我开始了:
/* Location of the image */
background-image: url(main.jpg);
/* Background image is centered vertically and horizontally at all times */
background-position: center center;
/* Background image doesn't tile */
background-repeat: no-repeat;
/* Background image is fixed in the viewport so that it doesn't move when
the content's height is greater than the image's height */
background-attachment: fixed;
/* This is what makes the background image rescale based
on the container's size */
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
即使我调整窗口大小等,这段代码也能正常工作。所以它非常好。但是问题出现在高度分辨率的屏幕上,比如 iPad 或 iPhone。在那里,图像非常放大,有点像素化或散焦。我想,这是因为图像分辨率低,但我意识到,图像接近 5K。我想让它像this site 一样响应
任何帮助都很好,需要快速解决!
谢谢
【问题讨论】:
-
这与 SEO 有什么关系?你也可以分享一个演示吗?
-
是的,它与视网膜有关..
-
和 SEO,因为它主要发生在 sfary 浏览器中......
-
我认为你不明白什么是 SEO。
标签: css