|
| WinXP | Win7 | OS X |
| IE9 | C | C |
|
| IE8 | A | A |
|
| IE7 | A | A |
|
| IE6 | A | A |
|
| Chrome7 | C | C | C |
| Chrome6 | A | A | A |
| Chrome3 | B | B | B |
| Firefox4 | C | C | C |
| Firefox3.6 | A | A | A |
| Firefox3.5 | C | C |
|
| Firefox3 | C | C |
|
| Safari | B | B | B |
| Opera | C | C | C |
(注:根據2010年11月10日數據整理)
頁(yè)面級指僅在一個(gè)或少量幾個(gè)頁(yè)面中用到。如果僅在一個(gè)頁(yè)面中用到的采用內聯(lián)方式嵌入于頁(yè)面head里,多于兩個(gè)頁(yè)面的放到外聯(lián)的CSS文件中,該文件再放到相應的產(chǎn)品目錄下。
參見(jiàn):http://img3.douban.com/css/packed_core1.css
.selector { property:value;property:value; }
.selector1,
.selector2,
.selector3 { property:value;property:value; }
-webkit-border-radius:4px;-moz-border-radius:4px;border-radius: 4px;
/* mod: doulist */
通用規則同樣分類(lèi)放在一起。通用規則在具體模塊規則的前面。如:
/* button */
...
/* mod */
...
/* nav */
...
/* mod: events album */
壞:
#rec
.gray-link
.broadsmr
.pl
好:
#db-nav-main
.infobox
.item
| 表示狀態(tài) | .on, .active, .selected, .hili |
| 表示位置 | .first, .last, .main, .side |
| 表示結構 | .hd, .bd, .ft, .col, .section |
| 通用元素 | .tb, .frm, .nav, .list, .item, .tag, .pic, .info |
IE6 | _property:value |
IE6/7 | *property:value |
IE6/7/8/9 | property:value\9 |
非IE6 | property//:value |
IE6 | * html selector { ... } |
IE7 | *:first-child+html selector { ... } |
非IE6 | html>body selector { ... } |
firefox only | @-moz-document url-prefix() { ... } |
saf3+/chrome1+ | @media all and (-webkit-min-device-pixel-ratio:0) { ... } |
opera only | @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0) { ... } |
iPhone/mobile webkit | @media screen and (max-device-width: 480px) { ... } |
最后更新日期:2010年11月17日
聯(lián)系客服