过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
HTML Listing Element
(
<listing>
) renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. The HTML 2 standard recommended that lines shouldn't be broken when not greater than 132 characters.
<pre>
element, which will interpret the internal HTML!
<pre>
element or if semantically adequate the
<code>
element, eventually escaping the HTML '
<
' and '
>
' so that they don't get interpreted.
<div>
element, by applying an adequate
CSS
style using
monospace
as the generic-font value in a
font-family
特性。
This element has no other attributes than the 全局属性 , common to all elements.
This element implements the
HTMLElement
接口。
Implementation note:
up to Gecko 1.9.2 inclusive, Firefox implements the
HTMLSpanElement
interface for this element.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
listing
弃用
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
不支持
No
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
不支持
No
注意事项
|
Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 不支持 No |
不支持
弃用。不要用于新网站。
见实现注意事项。
<pre>
and
<code>
elements to be used instead.
<plaintext>
and
<xmp>
elements, similar to
<listing>
but also obsolete.