关于< span>之间差异的任何想法&安培; < DIV>层? [英] Any thoughts on the differences between <span> & <div> layers?

查看:44
本文介绍了关于< span>之间差异的任何想法&安培; < DIV>层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前致谢...

=〜=

Timothy Casey

南澳大利亚
wo **** @ iprimus.com.au


以前:
ca *** @ smart.net.au


惊人的速度理解:

发现世界上最先进的速读应用程序:
http://www.fieldcraft.biz/shop/

解决方案

" Timothy Casey" < WO **** @ iprimus.com.au>写道:

提前致谢...


为了什么?

把你的问题放在体内您的留言。


< span>是一个内联元素。

< div>是一个块元素。

他们有不同的内容模型和不同的默认样式。


< div>用于标记页面的大分区(以及作为通用

容器的内容,不能被任何其他块更好地描述

元素,例如< p>,< h1>,< li>,< table>,< blockquote>,< address>,

等。)


< span>用于标记任何其他内联元素无法更好地描述的短语,例如: < cite>,< em>,< strong>,< dfn>等


它们都可以是各种风格的风格;但是除非显示属性发生变化,否则某些属性将不会适用
,因为某些属性

仅适用于块级别,有些仅适用于内联级别

元素。


它们都不是层。除非他们被定位并且设置了

z-index属性。

=〜=




什么'这个?一个sig分隔符是'' - ''not''=〜=''这就是为什么我的

新闻阅读器没有自动修剪你的签名。

史蒂夫

-

我的理论给你起见,我的异端邪说你,

我从不回信和你不喜欢我的领带。 - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>


Timothy Casey写道:

提前致谢...



在HTML中,默认情况下span是内联的; div是块。它们不是图层,

它们是HTML标签。


Berislav


-

如果互联网是马克斯兄弟的电影,网络,电子邮件和IRC是Groucho,Chico和Harpo,那么Usenet就是Zeppo。

Berislav Lopac写道:

在HTML中,span默认是内联的; div是块。它们不是图层,它们是HTML标签。




它们不是HTML标签,而是HTML元素。 ;-)


-

Els
http://locusmeus.com/

Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -


Thanks in advance...
=~=
Timothy Casey
South Australia
wo****@iprimus.com.au

Formerly:
ca***@smart.net.au

Phenomenal Speed Comprehension:
Discover the World''s most advanced speed reading application at:
http://www.fieldcraft.biz/shop/

解决方案

"Timothy Casey" <wo****@iprimus.com.au> wrote:

Thanks in advance...
For what?
Put your question in the body of your message.

<span> is an inline element.
<div> is a block element.
They have different content models and different default stylings.

<div> is used to mark up large divisions of a page (and as a generic
container for content that isn''t better described by any other block
element, e.g. <p>, <h1>, <li>, <table>, <blockquote>, <address>,
etc.).

<span> is used to mark up short phrases that aren''t better described
by any other inline element, e.g. <cite>, <em>, <strong>, <dfn>, etc.

They can both be styles in a variety of ways; but some properties will
not apply unless the display property is changed, as some properties
only apply to block level, and some only apply to inline level
elements.

Neither of them are "layers" unless they are positioned and have the
z-index property set.
=~=



What''s this? A sig separator is ''-- '' not ''=~='' and that''s why my
newsreader didn''t trim your sig automatically.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


Timothy Casey wrote:

Thanks in advance...



In HTML, span is inline by default; div is block. And they are not layers,
they are HTML tags.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.


Berislav Lopac wrote:

In HTML, span is inline by default; div is block. And they are not layers,
they are HTML tags.



And they are not HTML tags, they are HTML elements. ;-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -


这篇关于关于&lt; span&gt;之间差异的任何想法&安培; &LT; DIV&GT;层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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