定义
指定内嵌文本容器。
Specifies an inline text container.
注释
SPAN 元素在样式表(CSS)的应用方面特别有用。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。
此元素是内嵌元素。
此元素需要关闭标签。
The SPAN element is especially useful for applying cascading style sheets (CSS) styles.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is an inline element.
This element requires a closing tag.
元素示例代码
下面的例子使用了 SPAN 元素创建了一个内嵌文本容器,将包含的文本颜色变成蓝色。
This example uses the SPAN element to create an inline text container that changes the color of a word to blue.
<P>本段包含了单独的<SPAN STYLE="color: blue">蓝色</SPAN>单词。
HTML元素 - span
原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]
相关文章:
- HTML元素 - s(2007-11-1 7:42:38)
- HTML元素 - kbd 以定宽字体显示文本(2007-7-22 1:12:48)
- HTML元素 - frameset 组织多个框架和嵌套框架集(2007-6-18 8:3:33)
- HTML元素 - iframe 内嵌漂浮框架(2007-5-1 6:26:3)
- HTML元素 - frame 单个框架(2007-4-18 6:15:32)
- HTML元素 - meta 关于文档的隐藏信息(2007-4-1 1:25:38)
- html:语言代码(2007-3-6 8:25:54)
- HTML元素 - center(2007-2-26 4:40:33)
- HTML元素 - small(2007-2-24 1:0:25)
- HTML元素 - label 为页面上的其它元素指定标签(2007-2-18 10:8:44)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
