Of course, this doesn't mean you should wrap everything in DIV or SPAN elements.
当然,这并不意味着应该将所有东西都包围在 DIV 或 SPAN 元素中。
There may be situations where you need to wrap DIV or SPAN containers around to a form widget to access it from your CSS stylesheets.
在许多情况下,需要用 DIV 或 SPAN 容器包围一个表单组件,以便从 CSS 样式表访问它。
If you later wanted part of the text in the slogan div to be graphical, and another part-say a sub-title or elaboration-to remain normal text, you could surround just the hidden text within a span.
如果您以后希望标语div内的部分文本是图像,并且另一部分—比如副标题或说明性文字—保持为普通文本,您可以仅将隐藏的文本放置在span内部。
应用推荐