作 者:笑傲江湖分 类: 百 宝 箱 发布于:2012年-8月-1日 14:27 星期三
/* style fix for chrome & safari */ @media screen and (-webkit-min-device-pixel-ratio:0) { .yourclass { } #yourid { } } /* style fix for firefox */ @-moz-document url-prefix() { .yourclass { } #yourid { } } /* style fix for opera */ @media not screen and (1) {} /* 这一行不要删除,否则下面的不起作用。 */ @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) { .yourclass { } #yourid { } } /* 测试浏览器版本:chrome 20.0.1132.57 、firefox 12.0、opera 11.62 可用,其他版本未测试 */