两个不太常用的 CSS Hack
PlanABC 发布于2008-06-26 02:45 | 151次阅读 | 字体:大 小 打印预览
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 */
}
注:由于 Firefox 2 和 [......
本文出处 :
http://item.feedsky.com/~feedsky/planabc/~7049616/119675096/5157647/1/item.html
上一篇:解决 IE6 内存泄露的另类方法
下一篇:如何使用 JavaScript 创建可维护的幻灯片效果