日常吐槽:【!ios居然不能用背景图片固定!!!今天测试的bug给我!!差点没把我气死】
1、原代码
.box{ background:url('url'); background-size: 100% 250px; background-repeat: no-repeat; background-attachment:fixed;//就是这个啊啊啊啊啊 }
2、修改后
.img_box{ width: 100%; height: 250px; position: fixed; background-size: 100% 250px; background-repeat: no-repeat; background:url('url'); }
还是好气!!!