定義表示列表中的一個項目。 Denotes one item in a list. 注釋TYPE 標簽屬性的值 disc, circle 和 square 應(yīng)用于無序列表;值 1, a, A, i 和 I 應(yīng)用于有序列表。 當 LI 元素使用樣式表(CSS)絕對定位時,列表項目的符號并不現(xiàn)實。 自 Internet Explorer 6 起,此元素 display 屬性的默認值為 list-item。 此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。 此元素是塊元素。 此元素不需要關(guān)閉標簽。 The TYPE attribute values disc, circle, and square apply to unordered lists; the values 1, a, A, i, and I apply to ordered lists. When the LI element is absolutely positioned with Cascading Style Sheets (CSS), the list item marker is not rendered. As of Internet Explorer 6, the default value of the display property for this element is list-item. This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0. This element is a block element. This element does not require a closing tag. 示例代碼<DIR> <LI>藝術(shù) <LI>歷史 <LI>文學(xué) <LI>體育 <LI>娛樂 <LI>科學(xué) </DIR> 另見相關(guān)教程和示例代碼 |
|
|