什么可以在div内? [英] What can be inside a div?
问题描述
内部可以有什么限制< div id ="" >
< / div> ?你可以把桌子上的TD和TR放在里面吗?
谢谢,
Jehan
" Falc2199" <济******* @ aol.com>在消息中写道
新闻:ee ************************* @ posting.google.co m ... < blockquote class =post_quotes>是否有任何限制内容< div id ="" >
< / div> ?你可以把桌子里面的TD和TR放在里面吗?
为什么不尝试呢?
答案只有1分钟的文字 - 编辑离开...
您可以将任何普通的html标签放在< div>内部分。
-
Dag
58°26''15.9" N 008°46''45.5 E
" Dag Sunde"写了" Falc2199"写了对于里面的内容是否有任何限制< div id ="" >
< / div> ?你可以把桌子上的TD和TR放在里面吗?
为什么不尝试呢?
在文本编辑器中答案只有1分钟...... >
你可以将任何普通的html标签放在< div>中部分。
完全正确。一个好的文本编辑器允许您键入
< div>< html>< / html>< / div>
但是对于什么有一些限制在正确标记的
文件中有效。例如,TD和TR只能在TABLE中使用。使用
DIV元素,如
< URL: http://www.w3.org/TR/REC-html40/stru...l.html#h-7.5。 4 >
在div中有一个表的示例。
就javascript而言(这个新闻组的主题),奇怪的标记
可能会导致奇怪的行为。
Ivo
文章< ee ******** *****************@posting.google.com> ,
Je*******@aol.com (Falc2199)写道:
对于里面的内容是否存在任何限制< div id ="" >
< / div> ?你可以把桌子上的TD和TR放在里面吗?
A< div>只不过是一个通用的容器,默认为
display:block,强制前后换行,而不是
< span>默认显示:inline。
但是你可以设置一个< div>使用CSS进行浮动或内联。
要回答您的问题,您可以将任何元素放在
< div>中。
-
干杯马丁
Is there any limitations as to what can be inside <div id = "" >
</div> ? Can you place TDs and TRs for table inside it?
Thanks,
Jehan
"Falc2199" <Je*******@aol.com> wrote in message
news:ee*************************@posting.google.co m...Is there any limitations as to what can be inside <div id = "" >
</div> ? Can you place TDs and TRs for table inside it?
Why not try it?
The answer is only 1 minute in a text-editor away...
You can put any ordinary html-tag inside a <div> section.
--
Dag
58°26''15.9" N 008°46''45.5" E
"Dag Sunde" wrote"Falc2199" wroteIs there any limitations as to what can be inside <div id = "" >
</div> ? Can you place TDs and TRs for table inside it?
Why not try it?
The answer is only 1 minute in a text-editor away...
You can put any ordinary html-tag inside a <div> section.
Exactly. A good text-editor allows you to type
<div><html></html></div>
but there certain limitations as to what is valid in a properly marked up
document. TDs and TRs for example can only used inside a TABLE. The use of
DIV elements as explained at
<URL: http://www.w3.org/TR/REC-html40/stru...l.html#h-7.5.4 >
features an example of a table inside a div.
As far as javascript is concerned (this newsgroup''s topic), strange markup
may cause strange behaviour.
Ivo
In article <ee*************************@posting.google.com> ,
Je*******@aol.com (Falc2199) wrote:
Is there any limitations as to what can be inside <div id = "" >
</div> ? Can you place TDs and TRs for table inside it?
A <div> is nothing but a generic container that defaults to
display:block, forcing a line break before and after, as opposed to
<span> which defaults to display:inline.
You can however set a <div> to float or inline using css.
To answer your question, you can put just about any element inside a
<div>.
--
Cheers Martin
这篇关于什么可以在div内?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!