5

What is the browser's default display value (like block or inline) for a list element?

Is there a list where can look up things like that? I tried to look at the HTML5 specs, but as there are so many versions of it I didn't knew which one was binding or if any of them is binding at all as HTML5 is still in development.

4

2 回答 2

6

列表(与<ul>元素本身一样)显示为块级元素。列表成员显示为list-item,这是块状的一种特殊情况。

至于文档,您可以在 Mozilla 开发者网络 ( https://developer.mozilla.org/en-US/docs/HTML/Block-level_elements ) 上查看块级元素的完整列表,同样还有内联元素 ( https ://developer.mozilla.org/en-US/docs/HTML/Inline_elements)。

MDN 是一个很好的资源,非常值得记住。

于 2013-10-16T18:56:49.657 回答
-1

基于li 的 MDN 站点

于 2013-10-16T18:58:15.663 回答