HTMLBaseFontElement - Web API 接口参考 编辑
已废弃
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.
The HTMLBaseFontElement
interface provides special properties (beyond the regular HTMLElement
interface it also has available to it by inheritance) for manipulating <basefont>
elements.
The <basefont>
element has been deprecated in HTML4 and removed in HTML5. This latest specification requires that this element implements HTMLUnknownElement
rather than HTMLBaseFontElement
.
属性
从父类 HTMLElement
继承属性。
HTMLBaseFontElement.color
- Is a
DOMString
representing the text color using either a named color or a color specified in the hexadecimal#RRGGBB
format. HTMLBaseFontElement.face
- Is a
DOMString
representing a list of one or more font names. The document text in the default style is rendered in the first font face that the client's browser supports. If no font listed is installed on the local system, the browser typically defaults to the proportional or fixed-width font for that system. HTMLBaseFontElement.size
- Is a
DOMString
representing the font size as either a numeric or relative value. Numeric values range from1
to7
with1
being the smallest and3
the default. Relative value starts with a'+'
or a'-
'.
方法
无具体方法;从父类 HTMLElement
继承方法。
规范
规范 | 状态 | 备注 |
---|---|---|
Document Object Model (DOM) Level 2 HTML Specification HTMLBaseFontElement | Obsolete | No change |
Document Object Model (DOM) Level 1 Specification HTMLBaseFontElement | Obsolete | Initial definition |
浏览器兼容性
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.参见
- The HTML element
<basefont>
was implementing this interface.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论