ITeye博客

Is “<div/>” different from “<span style=”display:block“/>” ?

yuan · 2011-05-19 23:07 · HTML · Web前端 · Markdown

http://stackoverflow.com/questions/1142104/is-div-different-from-span-style-displayblock

Greg writes:

Yes they are different.

Even though you style a span with display: block you still can't put block-level elements inside it:

然后:

http://www.w3schools.com/tags/tag_div.asp http://www.w3schools.com/tags/tag_span.asp

评论(1)

  1. #1 楼 · Hooopo · 2011-05-20 00:16

    我记得我有一次写页面布局出问题了。改成xxx好了。

评论功能维护中,当前仅展示历史评论。