什么是< span>< / span>元件? [英] What is <span></span> element?

查看:239
本文介绍了什么是< span>< / span>元件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



 < span>< / span>的用途是什么? 

元素?我们应该在哪里使用它?

解决方案

From here


定义和用法 p>

该标签本身并没有提供可视的
更改。



标签提供了添加
挂钩到文本的一部分或
a文档的一部分。



当文本钩入跨度
元素中时,您可以将样式添加到
内容中,或者使用JavaScript来操作内容


版本是,它的样式是一些文本(没有与< div>标签不同的段落或换行符)


What is the purpose of the

<span></span>

element? And where should we use it?

解决方案

From here:

Definition and Usage

The tag provides no visual change by itself.

The tag provides a way to add a hook to a part of a text or a part of a document.

When the text is hooked in a span element you can add styles to the content, or manipulate the content with for example JavaScript.

So, the short version is, it's to style some text (without a paragraph or linebreak which is different from <div> tag)

这篇关于什么是&lt; span&gt;&lt; / span&gt;元件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆