国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

目錄 搜尋
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
文字

HTML <pre>元素表示預定義格式文本。在該元素中的文本通常按照原文件中的編排,以等寬字體的形式展現(xiàn)出來,文本中的空白符(比如空格和換行符)都會顯示出來。(緊跟在 <pre> 開始標簽后的換行符也會被省略)

內(nèi)容類別

Flow content, palpable content.

允許的內(nèi)容

Phrasing content.

標記遺漏

沒有,起始和結束標簽都是強制性的。

允許父母

任何接受  flow content 的元素。

允許ARIA角色

任何

DOM界面

HTMLPreElement

屬性

這個元素只包含全局屬性。

cols定義每行的最大字符數(shù)。這是一個非標準的屬性,作用與width相同。要實現(xiàn)這樣的效果,應該使用CSS。

width包含每行的最大字符數(shù)。雖然在技術上仍被實現(xiàn),但這個屬性沒有視覺效果。要實現(xiàn)這樣的效果,應該使用CSS。

wrap提示溢出怎樣發(fā)生。在現(xiàn)代瀏覽器中,這個提示會被忽略,且被沒有視覺效果。要實現(xiàn)這樣的效果,應該使用CSS。

例子

<!-- Some example CSS code -->
<pre>
body {
  color:red;}
  </pre>

結果

body {
  color:red;}

規(guī)范

Specification

Status

Comment

HTML Living StandardThe definition of '<pre>' in that specification.

Living Standard

No significant change from HTML Living Standard

HTML5The definition of '<pre>' in that specification.

Recommendation

No significant change from HTML 4.01 Specification

HTML 4.01 SpecificationThe definition of '<dl>' in that specification.

Recommendation

Deprecated the cols attribute

瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

(Yes)

(Yes)

1

(Yes)

(Yes)

(Yes)

cols

No

No

1 — 29

No

No

No

width

(Yes)1

(Yes)1

12

(Yes)1

(Yes)1

(Yes)1

wrap

?

No

1

?

?

?

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

1

(Yes)

(Yes)

(Yes)

cols

No

No

No

1 — 29

No

No

No

width

(Yes)1

(Yes)1

(Yes)1

12

(Yes)1

(Yes)1

(Yes)1

wrap

?

?

No

1

?

?

?

上一篇: 下一篇: