非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
过时
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.
<spacer>
is an obsolete HTML element which allowed insertion of empty spaces on pages. It was devised by Netscape to accomplish the same effect as a single-pixel layout image, which was something web designers used to use to add white spaces to web pages without actually using an image. However,
<spacer>
no longer supported by any major browser and the same effects can now be achieved using simple CSS.
Firefox, which is the descendant of Netscape's browsers, removed support for
<spacer>
in version 4.
Like all other HTML elements, this element supports the 全局属性 .
type
horizontal
,
vertical
and
block
.
size
horizontal
or
vertical
.
width
block
.
height
block
.
align
left
,
right
and
center
.
<span>Just a text node</span> <spacer type="horizontal" size="10"></spacer> <span>Just another text node</span> <spacer type="block" width="10" height="10"></spacer>
Not part of any specification.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
spacer
弃用
非标
|
Chrome 不支持 No | Edge 不支持 No | Firefox 不支持 1 — 4 | 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 |
不支持
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。