分享

li - HTML元素

 小明 2006-11-10

定义

表示列表中的一个项目。

Denotes one item in a list.

注释

TYPE 标签属性的值 disc, circle 和 square 应用于无序列表;值 1, a, A, i 和 I 应用于有序列表。

当 LI 元素使用样式表(CSS)绝对定位时,列表项目的符号并不现实。

自 Internet Explorer 6 起,此元素 display 属性的默认值为 list-item。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。

此元素是块元素。

此元素不需要关闭标签。

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>艺术
<LI>历史
<LI>文学
<LI>体育
<LI>娱乐
<LI>科学
</DIR>

另见

dir, menu, ol, ul

相关教程和示例代码

HTML列表

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章