写法导致的兼容性问题

1. background之后使用 !important

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

不能再background多个属性之后使用!important,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

原文地址:https://www.cnblogs.com/mengff/p/8042719.html