CSS hack浏览器兼容一览表

来源:互联网 发布:华硕驱动软件 编辑:程序博客网 时间:2024/05/22 20:29

CSS hack是指我们为了兼容各浏览器,而使用的特别的css定义技巧。这是国外摘来的一张CSS hack列表,显示了各浏览器对css hack的支持程度,对我们制作兼容网页非常有帮助。

《CSS hack浏览器兼容一览表》在很多的网站都是以一个图片的形式出现,所以许多读者不能理解它的实现的用法,例如:p/roperty:value; ,这句到底是什么意思,其实只要你去了原文地址看它的代码例子就一目了然了,下面举了几个实例,供参考。

voice-family:”/”}/”";voice-family:inherit;property:value;

<STYLE type=text/css>   #test-span {     voice-family:"/"}/"";     voice-family:inherit;     color:green;   }   </STYLE>  

p/roperty:value; Webjx.Com

<style type="text/css"> #test-span { c/olor:green; } </style>

 

/*/*/property:value;/* */

<style type="text/css"> #test-span { /*/*/ color:green; /* */ } </style>

 

/*/*//*/property:value;/* */

Webjx.Com

<style type="text/css"> #test-span { /*/*//*/ color:green; /* */ } </style> div#test

<style type="text/css"> span#test-span { color:green; } </style>

head:first-child+body div

<style type="text/css"> head:first-child+body #test-span { color:green; } </style>

Windows,Mac OS X,Macintosh,Other,这些都是操作系统名称,具体操作系统介绍点击相应链接。

 

IE, Mz, Ns, Op是指浏览器名称,原文有各浏览器相应地址链接点击进入了解相关知识

Webjx.Com

7, 6, 5.5, 5, 4浏览相应版本号

Y,N指名浏览器在不同的操作系统中是否支持的HACK

 

很多CSS HACK应用中,都是利用各版本的独有的HACK支持而进行的排列组合 .

原创粉丝点击