解决iOS不支持background-attachment: fixed

iOS不支持background-attachment: fixed 背景图片固定,造成背景图片放大并模糊不清。

解决办法:

@supports (-webkit-touch-callout: inherit) {
	.bg {
		background-attachment: scroll !important;
	}
}

但该方法只解决了图像放大并模糊不清问题,并无固定视差效果。

经测试安卓上很多国产浏览器也同样不支持background-attachment: fixed,手机版火狐和Chrome支持。

出处:https://stackoverflow.com/questions/20443574/fixed-background-image-with-ios7

本站文章大部分始于原创,用于个人学习记录,可能对您有所帮助,仅供参考!

weinxin
我的微信
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
 
知更鸟
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

拖动滑块以完成验证