您现在的位置: 电脑常识文选 - 网页制作 - <span>有什么用?
网页制作

<span>有什么用?

添加记录: 网页制作 类别: 网页制作 发布日期: 2006.09.20


问:   有一个网页,我把所有的<span>和</span>全部删除后,浏览界面一点也没有改变。请问<span>标签是什么意思?(在strict xhtml1.0中)

答: 定义 指定内嵌文本容器。 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>单词。 参考资料:http://www.blabla.cn/html_tag_ref/span.html

标签:

电脑常识文选 © 2006 版权所有

提示:本站致力于电脑小常识的分享与传播,内容仅供参考,按此操作责任自负。