IT技术精粹[JiShuBu.Com]-倾力打造一流IT技术平台!
  • 登录
  • 注册
  • 设为首页
  • 加入收藏
  • 网站首页
  • IT风向标
  • 网站优化
  • Html
  • CSS
  • JavaScript
  • ASP
  • Php/Mysql
  • Flash
  • Ajax
  • 源码下载
  • 精美桌面
  • 供求信息
  • 超稳定100M虚拟主机只要100元,还送50M邮箱!
  • 文字广告招商中...
  • 会员注册 | 用户登录 | 我要投稿
  • 信息订阅
HTML语言剖析(六)清单标记 您现在正在浏览:首页 > Html > 
HTML语言剖析(六)清单标记

作者: 发布时间:2008-08-14 13:10:32 来源:
<OL> <LI>
<UL>
<MENU> <DIR>
<DL> <DT> <DD>
■ <OL> <LI> :
▲Top
<OL>称为顺序清单标记。<LI>则用以标示清单项目。
所谓顺序清单就是在每一项前面加上 1,2,3... 等数目,又称编号清单。

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

  • type="i"
    设定数目款式,其值有五种,请参考 右表,内定为 type="1"。
  • start="4"
    设定开始数目,不论设定了哪一数 目款式,其值只能是 1,2,3.. 等整 数,内定为 start="1"。
TypeNumbering style
1arabic numbers1, 2, 3, ...
alower alphaa, b, c, ...
Aupper alphaA, B, C, ...
ilower romani, ii, iii, ...
Iupper romanI, 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> :
▲Top
<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> :
▲Top
这两个标记都不为 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> :
    ▲Top
    <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.

      
    【评论】【加入收藏夹】【大 中 小】【打印】【关闭】
    ※ 相关信息
     ·HTML语言剖析(八)表单标记  (2008-08-14 13:10:29)
     ·HTML语言剖析(七)表格标记  (2008-08-14 13:10:29)
     ·HTML语言剖析(十三)其他标记  (2008-08-14 13:10:07)
     ·HTML语言剖析(九)图形标记  (2008-08-14 13:09:55)
     ·HTML语言剖析(十二)多媒体标记  (2008-08-14 13:09:52)
     ·HTML语言剖析(二)HTML标记一览  (2008-08-14 13:09:36)
     ·HTML语言剖析(三)文件标记  (2008-08-14 13:09:22)
     ·HTML语言剖析(十五)调色原理  (2008-08-14 13:09:00)
     ·HTML语言剖析(一)Html简介  (2008-08-14 13:08:55)
     ·HTML语言剖析(1)  (2008-08-14 13:08:21)

    发表评论
    查看评论 
    用户名: 密码:
    验证码: 匿名发表
    [注册帐号]
    [控制面板]
    [用户登陆]
    [修改资料]
    [用户收藏]
    [我的状态]
    [退出登陆]
     
    文章搜索
       
      [添加文章]   [管理文章]
    最新技术文档
      ·中国移动188号段将于1月8日起在深圳正式放号
      ·PHP与Javascript的两种交互方式
      ·使用wordpress中的函数 (PHP)
      ·js倒计时效果-精确到秒 (Javascript)
      ·PHP无刷新删除数据
      ·PHP文件系统处理类
      ·PHP文件缓存数据类
      ·PHPMailer邮件类利用smtp.163.com发送邮件方
      ·PHP的POST方式
      ·md5 结合 crypt =无敌密码
    技术文档排行榜
      ·天气预报小偷,根据IP自动判断地址
      ·超经典计算机使用问题105答
      ·CSS网页布局入门教程:下拉及多级弹出式菜单
      ·'AjaxPro'未定义错误的原因&javascript顺
      ·[初学者必读]网页制作之HTML基础知识
      ·DIV&CSS打造自动伸展三栏复合布局
      ·近1000本javascript电子图书下载列表
      ·CSS 文字樣式技巧 (摘自一台湾网站,确实很
      ·阿里妈妈广告的投放技巧
      ·ajax+php无刷新二级联动下拉菜单(省市联动)
    关于站点 - 广告服务 - 联系我们 - 免责声明 - 程序支持 - 网站地图 - 留言中心 - 返回顶部

    Copyright © 2007-2008 www.Jishubu.com online services. All rights reserved. Template designed by laogui.
    违法不良信息举报中心 津ICP备07002356号