
HTML
<div > </div><!--background-->
.background没有容器,是屏幕的100%宽度。
CSS
.background { height:600px; wIDth:100%; position:relative; background: url(CSS/img/strand.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;}解决方法 我有同样的问题,我使用SCRolL而不是FIXED。 background-attachment:scroll;总结
以上是内存溢出为你收集整理的html – CSS背景图像大小不正确地在iPad和iPhone上全部内容,希望文章能够帮你解决html – CSS背景图像大小不正确地在iPad和iPhone上所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)