<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                | [DHTMLET?](http://www.dhtmlet.com) | [屬性清單?](#)|?相關內容:SEE ALSO------------------------------------------??樣式表偽類 Pseudo-Classes??樣式表偽對象 Pseudo-Elements??樣式表規則 At-Rules??樣式表聲明 Declaration??樣式表屬性 Properties??樣式表單位 Units | |-----|-----| Introduction To CSS2樣式表簡介 ![](https://box.kancloud.cn/2015-11-02_5636cd268eafe.gif) 說明: 本手冊針對的是已有一定網頁設計制作經驗的讀者。其目的是提供最新最全的樣式表內容的快速索引及注釋。所以對于樣式表的基礎知識,在此僅簡單介紹,恕不贅述。 本手冊的升級信息與版權聲明請參閱[關于本書](#)頁面。本手冊中專用詞匯請參閱[中英文詞匯對照表](#)。 限于篇幅,對于一些過于繁雜的相關內容,如動態樣式屬性(Dynamic Properties),濾鏡([Filters](#)),行為([Behaviors](#))請參閱我的其它相關著作。 本書中涉及到的所有HTML對象(Object,Element),HTML特性(Attributes)和屬性(Properties)請參閱我的相關著作。 ![](https://box.kancloud.cn/2015-11-02_5636cd269ead6.gif) 什么是樣式表 CSS是Cascading Style Sheet 的縮寫。譯作「層疊樣式表單」。是用于(增強)控制網頁樣式并允許將樣式信息與網頁內容分離的一種標記性語言。 ![](https://box.kancloud.cn/2015-11-02_5636cd26acaa0.gif) 如何將樣式表加入您的網頁 你可以用以下三種方式將樣式表加入您的網頁。而最接近目標的樣式定義優先權越高。高優先權樣式將繼承低優先權樣式的未重疊定義但覆蓋重疊的定義。例外請參閱[important](#)聲明。 ![](https://box.kancloud.cn/2015-11-02_5636cd26b6c31.gif) 鏈入外部樣式表文件 (Linking to a Style Sheet) 你可以先建立外部樣式表文件(.css),然后使用HTML的link對象。示例如下: <head> <title>title of article</title> <link rel=stylesheet href="http://www.dhtmlet.com/rainer.css" type="text/css"> </head> 而在XML中,你應該如下例所示在聲明區中加入: <? xml-stylesheet type="text/css" href="http://www.dhtmlet.com/rainer.css" ?>> ![](https://box.kancloud.cn/2015-11-02_5636cd26c3daa.gif) 定義內部樣式塊對象 (Embedding a Style Block) 你可以在你的HTML文檔的<HTML>和<BODY>標記之間插入一個<STYLE>...</STYLE>塊對象。 定義方式請參閱[樣式表語法](#)。示例如下: <html> <style type="text/css"> <!-- body {font: 10pt "Arial"} h1 {font: 15pt/17pt "Arial"; font-weight: bold; color: maroon} h2 {font: 13pt/15pt "Arial"; font-weight: bold; color: blue} p {font: 10pt/12pt "Arial"; color: black} --> </style> <body> 請注意,這里將style對象的type屬性設置為"text/css",是允許不支持這類型的瀏覽器忽略樣式表單。 ![](https://box.kancloud.cn/2015-11-02_5636cd26d28d4.gif) 內聯定義 (Inline Styles) 內聯定義即是在對象的標記內使用對象的style屬性定義適用其的樣式表屬性。示例如下: <p style="margin-left: 0.5in; margin-right:0.5in">這一行被增加了左右的外補丁<p> ![](https://box.kancloud.cn/2015-11-02_5636cd26ddf04.gif) 樣式表語法 (CSS Syntax) Selector { property: value } 參數說明: *Selector*?--?[選擇符](#) *property?:?value*?--?樣式表定義。[屬性](#)和屬性值之間用冒號(:)隔開。定義之間用分號(;)隔開 ![](https://box.kancloud.cn/2015-11-02_5636cd26e8140.gif) 繼承的值 (The ' Inherit ' Value) 每個屬性都有一個指定的值:Inherit。它的意思是:將父對象的值等同為計算機值得到。這個值通常僅僅是備用的。顯式的聲明它可用來強調。 蘇沈小雨制作?保留所有權利 &copy2001 rain1977.comer . All rights reserved . Terms of Use .
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看