首页 > 其他 > 详细

写法导致的兼容性问题

时间:2017-12-15 14:31:57      阅读:207      评论:0      收藏:0      [点我收藏+]

1. important前面没加空格

background:url(‘../images/activity_redrain/coupon12.png‘) no-repeat center!important;

如果!important与center之间不加空格,在某些手机上会无法识别background属性

2. js注释写在{后面

if( typeof data.result !=‘undefined‘ && typeof data.result.status!=‘undefined‘){//已注册

}

将注释//已注册与{写在同一行,在某些环境下可能无法正常输出js,例如某些php页面内嵌的script里面

3.transform:translateX(-50%)不支持

在oppo R7的某些app内部不支持,优先使用margin-left: -height/2

写法导致的兼容性问题

原文:http://www.cnblogs.com/mengff/p/8042719.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!