兼容

-ms-border-radius: 5px;/*-ms代表ie内核识别码*/
-moz-border-radius: 5px;/*-moz代表Mozilla火狐内核识别码*/
-webkit-border-radius: 5px;/*-webkit代表谷歌内核识别码*/
-o-border-radius: 5px;/*-o代表欧朋Opera内核识别码*/

-----------------------------!important----------------------------------------------

.myDiv{background:red!important; background:green;}

ie6下解释为背景色green,其它浏览器解释为背景色red;

IE6   360、FF 
绿色 红色

 

 

 如果这同一个样式在不同大括号里定义,其中一个加important 则important发挥正常作用,

.myDiv{background:red!important}

.myDiv{background:green}//即使调换了顺序

这时所有浏览器统一解释为背景色red。

---------------------------------------------------------------

iPhone下 new Date(time).getTime()为NaN

 new Date(time.replace(/-/g, "/")).getTime()

posted @ 2016-04-06 15:29  424174余  阅读(131)  评论(0)    收藏  举报