标签vs跨度:html [英] Label vs span : html
本文介绍了标签vs跨度:html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在呈现数据方面我有些困惑.我的场景是必须渲染计数,但不确定使用跨度或标签.
I am a bit confused in what to use for rendering data. My scenerio is that I have to render count and I am not sure about using span or label.
<span id="spnCount"></span>
或
<label id="lblCount"></label>
推荐答案
当您具有表单或输入元素时,将使用 label
- label
与一个 input
元素.跨度是任何内联内容的通用容器.我认为您在这种情况下需要 span
A label
is used when you have a form or input elements - the label
is associated with an input
element. Span is a general container for any inline content. I think you want a span
in this case
这篇关于标签vs跨度:html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文