定义指定内嵌文本容器。 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>单词。 |
转载于:https://www.cnblogs.com/yuzhongwusan/archive/2009/04/08/1431643.html
本文介绍了HTML中的SPAN元素,该元素作为内嵌文本容器,在应用CSS样式方面特别有用。通过实例展示了如何使用SPAN元素改变文本颜色,适用于InternetExplorer3.0及更高版本的HTML和InternetExplorer4.0及更高版本的脚本。

被折叠的 条评论
为什么被折叠?



