GOOGLE站内检索
首 页 网页制作 网络编程 图形图象 冲浪宝典 操作系统 软件教学 网络安全
 
Dreamweaver | FrontPages | Javascript | HTML | CSS | 心得技巧 | DHTML |
HTML
Dreamweaver
FrontPages
Javascript
HTML
CSS
心得技巧
DHTML
最新文章TOP10
·图形标记
·实现网页自动刷新
·HTML语言剖析(六)清单标
·设置图片
·不用询问关闭一个独立的窗口代
·HTML语言基础
·调色原理
·网页中多层效果的灵活使用
·使用HTML 4.0制作表格
·用DHTML制作带链接的滚动
·HTML组件(HTML CO
·HTML语言剖析(十四)特殊
百度站内搜索
标 题 全 文
首 页 >> 网页制作 >> HTML

HTML语言剖析(六)清单标记
 [2005-5-24 18:16:26]
我摘  365key  ViVi  niu.la  加加文摘  狐摘    人人网摘  亿友响享  天极网摘

<OL> <LI>
<UL>
<MENU> <DIR>
<DL> <DT> <DD>
<OL> <LI> :
<OL>称为顺序清单标记。<LI>则用以标示清单项目。
所谓顺序清单就是在每一项前面加上 1,2,3... 等数目,又称编号清单。

<OL> 的参数设定(常用):
例如: <ol type="i" start="4"></ol>

  • type="i"
    设定数目款式,其值有五种,请参考 右表,内定为 type="1"。
  • start="4"
    设定开始数目,不论设定了哪一数 目款式,其值只能是 1,2,3.. 等整 数,内定为 start="1"。
Type Numbering style
1 arabic numbers 1, 2, 3, ...
a lower alpha a, b, c, ...
A upper alpha A, B, C, ...
i lower roman i, ii, iii, ...
I upper roman I, II, III, ...

<LI> 的参数设定(常用):
例如: <li type="square" value="4">

  • type="square"
    只适用于非顺序清单,设定符号款式,其值有三种,如下,内定为 type="disc":
    符号 是当 type="disc" 时的列项符号。
    符号 if" width=10 height=10 border=0> 是当 type="circle" 时的列项符号。
    符号 是当 type="square" 时的列项符号。
  • value="4"
    只适用于顺序清单,设定该一项的数目,其後各项将以此作为起始数目而递增, 但前面各项则不受影响,其值只能是 1,2,3.. 等整数,没有内定值。

例子:
HTML Source Code (原始码) 浏览器显示结果
My best friends:
<ol>
<li>Michelle Wei
<li>Michael Wan
<li>Gloria Lam
</ol>
My best friends:
  1. Michelle Wei
  2. Michael Wan
  3. Gloria Lam

<UL> :
<UL>称为无序清单标记。
所谓无序清单就是在每一项前面加上 等符号,故又称符号清单。

<UL> 的参数设定(常用):
例如: <UL type="square">

  • type="square"
    设定符号款式,其值有三种,如下,内定为 type="disc":
    符号 是当 type="disc" 时的列项符号。
    符号 是当 type="circle" 时的列项符号。
    符号 是当 type="square" 时的列项符号。

注意:由于 <UL> 及 <LI> 都有 type 这个参数,两者尽可能选用其一。

例子:
HTML Source Code (原始码) 浏览器显示结果
My Homepages:
<ul>
<li>Penpals Garden
<li>ICQ Garden
<li>Software City
<li>Creation of Webpage
</ul>
My Homepages:
  • Penpals Garden
  • ICQ Garden
  • Software City
  • Creation of Webpage

<MENU> <DIR> :
这两个标记都不为 W3C 所赞同,希望用者能以 <ul> 及 <ol> 代之。
<MENU> 及 <DIR>,基本上它和 <ul> 是一样的,在一些特别的浏览器可能表现出 <ol> 的 效果,于旧版的 IE 或 NC 标记 <DIR> 不显示符号或数目。两标记的用法与 <ul> 完全一 样。

例子:
HTML Source Code (原始码) 浏览器显示结果
My Homepages:
<dir>
<li>Penpals Garden
<li>ICQ Garden
<li>Software City
<li>Creation of Webpage
</dir>
My Homepages:
  • Penpals Garden
  • ICQ Garden
  • Software City
  • Creation of Webpage
  • <DL> <DT> <DD> :
    <DL>称为定义清单标记。 <DT> 用以标示定义条目,<DD> 则用以标示定义内容。
    所谓定义清单就是一种分二层的项目清单,其不故符号及数目。

    三个标记都没有常用的参数。而 <DT> <DD> 可以独立使用,只是一些旧的浏览器并不支 援,如 IE 3.0。常用的如 <DD> 标记可用以制造段落第一个字前面的空白。

    例子:
    原始码 <dl>
    <dt>How to use Definition List
    <dd>First, you should not place paragraph tag right after or before a list structure or between the items of a list. In cerntain contexts, use of extra paragraph tags should always be avoided, when you realize this concept, it is quit easy to write a HTML.
    <dt>Other things to know
    <dd>We usually put only ONE Definition tag following the Definition Term tag, more than one DD tag is not recommanded. Besides, unlike Definition List is a nonempty tag, both Definition Term and Definition Description are empty tags.
    </dl>
    显示结果
    How to use Definition List
    First, you should not place paragraph tag right after or before a list structure or between the items of a list. In cerntain contexts, use of extra paragraph tags should always be avoided, when you realize this concept, it is quit easy to write a HTML.
    Other things to know
    We usually put only ONE Definition tag following the Definition Term tag, more than one DD tag is not recommanded. Besides, unlike Definition List is a nonempty tag, both Definition Term and Definition Description are empty tags.

      最新文章:   推荐资讯:
    ·DHTML模拟菜单
    ·在网页上制作仿电视演职员表效果
    ·让你的网页活跃起来
    ·认识DHTML中的“行为”组件
    ·DHTML的初步入门
    ·如何用DHTML编制网页
    ·在你的主页中为Web Robot
    ·用IFRAME建立网上阅览室
    ·WebEditor网页制作新客
    ·脚本技术应用ABC
    ·ASP中页面限权访问的几种方法
    · 亲密接触ASP.Net——目录
    ·ASP应用中心得回放
    ·一个投票系统的源程序(cover
    · 用VB实现表单的自动提交
    ·用ADO连接数据库的三种方法及其
    ·优化MICROSOFT ACCE
    ·域名登记查询(whois)很复杂
    ·一个免费的邮件列表源程序(三)
    ·Serv-U :快速构建功能强大
    关于站点 | 网站服务 | 联系方式 | 合作伙伴 | 广告业务 | 友情链接 |  粤ICP备05106389号 © 1999-2005 PC163.CN 版权没有 欢迎传播
    Google
    搜索WWW 搜索www.pc163.cn