首頁  >  文章  >  web前端  >  Default style sheet for HTML 4_基礎教學

Default style sheet for HTML 4_基礎教學

WBOY
WBOY原創
2016-05-16 12:08:521861瀏覽

本附錄是資訊性的,而不是規範性的。

此樣式表是基於對目前 UA 實踐的廣泛研究,描述了所有 HTML 4 ([HTML4]) 元素的典型格式。鼓勵開發人員在其實作中將其用作預設樣式表。

某些 HTML 元素的完整表示無法在 CSS 2.1 中表達,包括替換元素(「img」、「object」)、腳本元素(「script」、「applet」)、表單控制元素和框架元素。

對於其他元素,可以在 CSS 中描述舊版演示文稿,但解決方案會刪除該元素。例如,可以透過將 CSS 聲明附加到其他元素(例如 DIV)來替換 FONT 元素。同樣,可以在 CSS 中描述表示屬性(例如,TABLE 上的「邊框」屬性)的舊表示,但必須變更來源文件中的標記。

html、地址、
blockquote、
body、dd、div、
dl、dt、欄位集、表單、
frame、框架集、
h1、h2 ,h3 , h4,
h5, h6, noframes,
ol, p, ul, center,
dir, hr, 選單, pre   {  塊} ##1 # ##head            { 顯示:無 }
table           { 顯示          { 顯示:table-header-group }
tbody           { 顯示:table - row-group }
tfoot           { display: table-footer-group }
col        : table-column-group }
td,           { 顯示:表格單位}
caption         { 顯示: 表格標題}
  text-align: center }
caption         { text-align: center }
body           { font-size: 2em;邊距: .67em 0 }
h2              { 字型大小: 1.5em;邊距: .75em 0 }
h3              { 字型大小: 1.17em;邊界: .83em 0 }
h4, p,
blockquote, ul,
fieldset, form,
ol, dl, dir,
menu    ## h5              { 字體大小: .83em;邊距:1.5em 0}
h6              { 字型大小:.75em;邊距: 1.67em 0 }
h1, h2, h3, h4,
h5, h6, b,
strong          {右距:40px}
i,cite,em,
var,地址    {font-style:斜體}
pre,tt,code,
kbd,samp       {font-family:等寬字體}
pre             { white-space: pre }
button, textarea,
input, select  -size: 1.17em }
small, sub 、 super { font-size: .83em }
sub             { vertical-align: sub }
sup          { border-spacing: 2px; }
thead, tbody,
tfoot           {vertical-align: middle }
td, th       rough } ## #hr              { border: 1px inset }
ol, ul, dir,
men       { list-style-type: decimal }
ol ul, ul ol,
ul ul,ol ol    { 頁邊距上方:0; margin-bottom: 0 }
u, ins          { 文本裝飾: 下劃線 }
br:before       { content: "\A" }
:before, :after { white-space: 行前 } ## #center          { text-align: center }
:link, :visited { text-decoration: underline }
: 向設定 (請勿更改)*/
BDO[DIR="ltr"]  { 方向:ltr; unicode-bidi: bidi-override}
BDO[DIR="rtl"] { 方向:rtl; unicode-bidi: 雙向覆蓋}

*[DIR="ltr"]    { 方向:ltr; unicode-bidi: 嵌入}
*[DIR="rtl"]    { 方向:rtl; 。 avoid }
  ul, ol, dl    { page-break-before: avoid }
}

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn