常用的CSSHack浏览器兼容写法
都是精准像素自用CSSHack写法,随着浏览器的不断更新。目前来说,CSSHack也基本用不到了,大部分浏览器兼容性都很高了。
CSSHack写法
background-color:#000000;[ 所有识别 ]
background-color:#000000\9; [ IE识别 ]
*background-color:#000000;[ IE6、7识别 ]
_background-color:#000000;[ IE6识别 ]
@-moz-document url-prefix() { background-color:#000000; }[ 火狐识别 ]
@media screen and (-webkit-min-device-pixel-ratio:0) { background-color:#000000; } [ Webkit识别 ]
@media all and (-webkit-min-device-pixel-ratio:10000),not and all (-webkit-min-device-pixel-ratio:0) { background-color:#000000; }[ Opera识别 ]HTML内置写法
<!--[if IE]>此内容只有IE可见<![endif]--> <!--[if IE6.0]>此内容只有IE6.0可见<![endif]--> <!--[if !IE]>此内容除了IE之外都可见<![endif]--> <!--[if !IE5.0]>此内容除了IE5.0之外都可见<![endif]--> <!--[if gt IE6.0]>此内容IE6.0以上版本都可见<![endif]-->
资源均来自第三方,谨慎下载,前往第三方网站下载
本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。
如果侵犯了你的权益请来信告知我们删除。邮箱:737597453@qq.com
上一篇:苹果cms搜索功能详解
下一篇:CSS全部标签属性重置语法


