@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 一般为最新版本。
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 */
}
新闻热点
疑难解答