[] BlogJava@王戰(zhàn)鋒, Dic.cn, 21Days@Tuota25, 英語(yǔ)學(xué)習(xí), 每日一句

          中國(guó)青年

          [ Notes ] CSS的5個(gè)偽類@page,@media,@important,@font-face,@charset

          1. @page sPageSelector { sRules }
            sPageSelector - [ :first | :left | :right ]}
            例如:
            @page :first { body { font-size : 12 px; } }Rule applies to the first page in the collection.
            @page :left { body { font-size : 10 px; } }Rule applies to pages on the left side of the binding—verso pages.
            @page :right { body { font-size : 14 px; } }Rule applies to pages on the right side of the binding—recto pages.
          2. @media sMediaType { sRules }
            sMediaType - [ screen | print | all ]
            例如:
            @media screen { body { font-size : 12 px ; } } 普通顯示樣式
            @media print { body { font-size : 10 px ; } } 打印顯示樣式
            @media all { body { font-size : 14 px ; } } 所有顯示樣式
          3. @important url("sUrl") = @important "sUrl"
            sUrl = links an external style sheet to a document.
            例如:
            @important url("sUrl") 等于 LINK REL="stylesheet" TYPE="text/css" href="sUrl"
            @important "sUrl"
          4. @font-face { sFace }
            sFace - [ font-family | src:url(sUrl) ]
            /* 聲明字體 */
            例如:
            @font-face { font-family : geogia ;} 等于 BASEFONT face="sFace"
            @font-face { url(sUrl);}

            This paragraph uses the font-face rule defined in the above style element. The rule embeds an OpenType file for the Comic Sans font.

          5. @charset sCharacterSet
            /* 聲明字符集 */
            例如:
            @charset "gb2312" 等于 META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"



          海納百川,有容乃大;壁立千仞,無(wú)欲則剛。

          posted on 2008-04-26 19:07 王戰(zhàn)鋒 閱讀(859) 評(píng)論(0)  編輯  收藏 所屬分類: CSS

          <2008年4月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          導(dǎo)航

          統(tǒng)計(jì)

          公告

          為人處世要光明磊落,與人相處要稀里糊涂。
          說(shuō)實(shí)話,做實(shí)事;先做后說(shuō),多做少說(shuō)。

          常用鏈接

          留言簿(3)

          隨筆分類(11)

          隨筆檔案(12)

          文章分類(958)

          文章檔案(957)

          新聞分類(5)

          新聞檔案(5)

          搜索

          積分與排名

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 长沙县| 临清市| 富裕县| 东乌| 固原市| 循化| 灵宝市| 伊宁市| 鹤山市| 全州县| 泽州县| 雷山县| 朝阳区| 花莲县| 镇巴县| 台山市| 远安县| 临西县| 佛坪县| 淄博市| 喀喇沁旗| 奇台县| 桃江县| 缙云县| 阳泉市| 宕昌县| 隆回县| 香港 | 阿拉善左旗| 静海县| 博白县| 固原市| 通化县| 资阳市| 龙胜| 宁海县| 濮阳市| 措美县| 马边| 若羌县| 秦安县|