首页 > Web开发 > 详细

CSS Hack(Safari、Opera、Firefox3和IE7)

时间:2016-01-16 07:20:35      阅读:195      评论:0      收藏:0      [点我收藏+]

仅 Safari 和 Opera 识别的 Hack;仅 Firefox 3 和 IE7 识别的 Hack。 1、仅 Safari 和 Opera 识别的 Hack
@media all and (min-width: 0px)
{/* Safari and Opera rules here */}
或者
@media screen and (-webkit-min-device-pixel-ratio:0)
{/* Safari and Opera rules here */}
注:这里所指代的 Safari 和 Opera 一般为最新版本。 2、仅 Firefox 3 和 IE7 识别的 Hack
selector, x:-moz-any-link, x:default
{/* Firefox 3 and IE7 rules here */}
使用方法例:

@media screen and (-webkit-min-device-pixel-ratio:0)
{
.box{width:100px;}
/* Safari and Opera rules here */
}

CSS Hack(Safari、Opera、Firefox3和IE7)

原文:http://www.jb51.net/css/12212.html

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