Of course, this doesn't mean you should wrap everything in DIV or SPAN elements.
当然,这并不意味着应该将所有东西都包围在DIV或SPAN元素中。
We use DIV and SPAN elements only where we need to define a logical separation in the content.
只在需要在内容中定义逻辑分隔时,才会使用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内部。
The stock quotes widget loops through the items and appends a p element that contains two span elements into the div element identified by the id #quotes.
股票报价小部件会遍历结果项,将包含两个span元素的p元素附加到由id #quotes标识的div 元素中。
You can begin by adding in CSS stylesheets to your pages, along with div and span elements to style and identify various portions of your pages.
可以从为页面添加css样式表开始,与div和span元素一起,区分页面不同区域并设置区域的样式。
You might want to include the Google search control in a span element, right in the middle of the rest of your app's content, rather than off to the side in a div.
还可以将Google搜索控件包括在一个span元素中,放在其余的应用程序内容的中间,而不是放在侧面的一个div中。
Note that these are not limited to just buttons and such, but can be made to handle a mouse click on any div, span, and so on.
请注意,事件处理并不局限于按钮,还包括处理在任何div、span等上进行的鼠标单击。
Then, span at the end selects span tags within that div.
然后,末尾的span选择该div内部的span标记。
You'll use div, span, and other dynamic HTML elements to mark up your HTML.
我们将使用div、span和其他动态html元素来标记HTML。
Title selects a div with an id of "span."
title选择一个id为“span”的div。
Title selects a div with an id of "span."
title选择一个id为“span”的div。
应用推荐