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 Developer Network ( 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 に答える