Fixed Background Image Issues in iOS 7
Implementing a fixed background image may prove problematic on iOS 7, particularly on the iPad, resulting in a zoomed and blurry image. To resolve this, review the following CSS code:
.header { display: table; height: 100%; width: 100%; position: relative; color: #fff; background: url(../images/boston2.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
Possible Solutions:
@media screen and (max-device-width: 1024px) { .header { background-attachment: scroll; } }
By considering these solutions, you can effectively display a fixed background image on iOS 7 without encountering issues.
The above is the detailed content of How to Fix Blurry Background Images on iOS 7?. For more information, please follow other related articles on the PHP Chinese website!