亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
簡介 Introducing 樣式表簡介 Introduction to CSS2 關(guān)于本手冊 About this handbook 蘇沈小雨 About rain1977 屬性 Properties 字體 Font font color font-family font-size font-size-adjust font-stretch font-style font-weight text-decoration text-underline-position text-shadow font-variant text-transform line-height letter-spacing word-spacing 文本 Text text-indent text-overflow vertical-align text-align layout-flow writing-mode direction unicode-bidi word-break line-break white-space word-wrap text-autospace text-kashida-space text-justify ruby-align ruby-overhang ruby-position ime-mode layout-grid layout-grid-char layout-grid-char-spacing layout-grid-line layout-grid-mode layout-grid-type 背景 Background background background-attachment background-color background-image background-position background-positionX background-positionY background-repeat layer-background-color layer-background-image 定位 Positioning position z-index top right bottom left 尺寸 Dimensions height max-height min-height width max-width min-width 布局 Layout clear float clip overflow overflow-x overflow-y display visibility 外補(bǔ)丁 Margins margin margin-top margin-right margin-bottom margin-left 輪廓 Outlines outline outline-color outline-style outline-width 邊框 border border border-color border-style border-width border-top border-top-color border-top-style border-top-width border-right border-right-color border-right-style border-right-width border-bottom border-bottom-color border-bottom-style border-bottom-width border-left border-left-color border-left-style border-left-width 內(nèi)容 Generated Content include-source quotes content counter-increment counter-reset 內(nèi)補(bǔ)丁 Paddings padding padding-top padding-right padding-bottom padding-left 列表 Lists list-style list-style-image list-style-position list-style-type marker-offset 表格 table border-collapse border-spacing caption-side empty-cells table-layout speak-header 滾動條 Scrollbar scrollbar-3d-light-color scrollbar-highlight-color scrollbar-face-color scrollbar-arrow-color scrollbar-shadow-color scrollbar-dark-shadow-color scrollbar-base-color 打印 Printing page page-break-after page-break-before page-break-inside marks orphans size widows 聲音 Aural voice-family volume elevation azimuth stress richness speech-rate cue cue-after cue-before pause pause-after pause-before pitch pitch-range play-during speak speak-numeral speak-punctuation 其它 Classification cursor behavior filter zoom 選擇符 Selectors 通配選擇符 Universal Selector 類型選擇符 Type Selectors 屬性選擇符 Attribute Selectors 包含選擇符 Descendant Selectors 子對象選擇符 Child Selectors ID選擇符 ID Selectors 類選擇符 Class Selectors 選擇符分組 Grouping 偽類 Pseudo-Classes :link :hover :active :visited :focus :first-letter :first-line :first-child :first :left :right :lang 偽對象 Pseudo-Elements :before :after 規(guī)則 At-Rules @import @charset @font-face @fontdef @page @media 聲明 Declaration !important 單位 Units 長度 Length px em ex pt pc in mm cm 顏色 Color rgb(RGB) #RRGGBB Color Name 角度 Angle deg grad rad 時間 Time s ms 頻率 Frequency Hz kHz 附錄 Appendix 顏色表 Color Table 設(shè)備類型 Media Types 字符集識別 Character Set Recognition ISO Latin-1字符集 ISO Latin-1 Character Set HTML附加命名實體 特殊文本和BIDI文本的字符實體
characters

DHTMLET? 屬性清單?|?相關(guān)內(nèi)容:
Introduction To CSS2樣式表簡介

說明
本手冊針對的是已有一定網(wǎng)頁設(shè)計制作經(jīng)驗的讀者。其目的是提供最新最全的樣式表內(nèi)容的快速索引及注釋。所以對于樣式表的基礎(chǔ)知識,在此僅簡單介紹,恕不贅述。
本手冊的升級信息與版權(quán)聲明請參閱關(guān)于本書頁面。本手冊中專用詞匯請參閱中英文詞匯對照表。
限于篇幅,對于一些過于繁雜的相關(guān)內(nèi)容,如動態(tài)樣式屬性(Dynamic Properties),濾鏡(Filters),行為(Behaviors)請參閱我的其它相關(guān)著作。
本書中涉及到的所有HTML對象(Object,Element),HTML特性(Attributes)和屬性(Properties)請參閱我的相關(guān)著作。

什么是樣式表
CSS是Cascading Style Sheet 的縮寫。譯作「層疊樣式表單」。是用于(增強(qiáng))控制網(wǎng)頁樣式并允許將樣式信息與網(wǎng)頁內(nèi)容分離的一種標(biāo)記性語言。
如何將樣式表加入您的網(wǎng)頁
你可以用以下三種方式將樣式表加入您的網(wǎng)頁。而最接近目標(biāo)的樣式定義優(yōu)先權(quán)越高。高優(yōu)先權(quán)樣式將繼承低優(yōu)先權(quán)樣式的未重疊定義但覆蓋重疊的定義。例外請參閱important聲明。
鏈入外部樣式表文件 (Linking to a Style Sheet)
你可以先建立外部樣式表文件(.css),然后使用HTML的link對象。示例如下:
<head>
<title>title of article</title>
<link rel=stylesheet type="text/css">
</head>
而在XML中,你應(yīng)該如下例所示在聲明區(qū)中加入:
<? xml-stylesheet type="text/css" ?>>
定義內(nèi)部樣式塊對象 (Embedding a Style Block)
你可以在你的HTML文檔的<HTML>和<BODY>標(biāo)記之間插入一個<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屬性設(shè)置為"text/css",是允許不支持這類型的瀏覽器忽略樣式表單。
內(nèi)聯(lián)定義 (Inline Styles)
內(nèi)聯(lián)定義即是在對象的標(biāo)記內(nèi)使用對象的style屬性定義適用其的樣式表屬性。示例如下:
<p style="margin-left: 0.5in; margin-right:0.5in">這一行被增加了左右的外補(bǔ)丁<p>
樣式表語法 (CSS Syntax)
Selector { property: value }
參數(shù)說明:
Selector?--?選擇符
property?:?value?--?樣式表定義。屬性和屬性值之間用冒號(:)隔開。定義之間用分號(;)隔開
繼承的值 (The ' Inherit ' Value)
每個屬性都有一個指定的值:Inherit。它的意思是:將父對象的值等同為計算機(jī)值得到。這個值通常僅僅是備用的。顯式的聲明它可用來強(qiáng)調(diào)。
蘇沈小雨制作·保留所有權(quán)利
&copy2001 rain1977.comer . All rights reserved . Terms of Use .
Previous article: Next article: