HTML

1个成员

HTML元素 - basefont

发表于 2016-12-24 2767 次查看
定义
设置显示文本时作为默认字体的基础字体值。
Sets a base font value to be used as the default font when rendering text.

注释

此元素仅可在 body 元素或 head 元素中使用。BASEFONT 应该出现在文档 body 中的任何显示文本之前。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。
此元素不改变内容显示格式。
此元素不需要关闭标签。
This element can be used only within the BODY element or the HEAD element. BASEFONT should appear before any displayed text in the body of the document.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is not rendered.
This element does not require a closing tag.
元素示例代码
下面的例子使用 BASEFONT 元素来设置基础字体大小,而 FONT 元素用来临时覆盖此设置。
This example uses the BASEFONT element to set the base font size, and the FONT element to temporarily override it.
<!-- No BASEFONT size specified yet. -->
<BASEFONT SIZE=4> Set the BASEFONT size.
<FONT SIZE=2> Temporarily override the BASEFONT size.</FONT>
<!-- Resume the BASEFONT size. -->

标准信息
该对象已不建议使用,将可能在今后HTML标准中废弃。
This object is deprecated in HTML.
发表回复
你还没有登录,请先登录注册