首 页 教育新闻课件中心论文中心教学教案试题中心语文专题综合下载技术教程公务员  
设为首页
加入收藏
联系我们
您当前的位置:中国教育资源网 -> 技术教程 -> 网站建设 -> CSSHTML -> 技术内容 退出登录 用户管理

HTML之清单标记CSSHTML教程

论文作者:佚名  论文来源:不详  论文发布时间:2006-6-20 0:53:36  论文发布人:chjchjchj

减小字体 增大字体

 

■ 清单标记

<OL> <LI>
<UL>
<MENU> <DIR>
<DL> <DT> <DD>

  欲明白本篇【HTML彻底剖析】之标记分类,请看 【标记一览】。
  也请先明白围堵标记与空标记的分别,请看 【HTML概念】。

■ <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 style1arabic 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" 时的列项符号。
    符号 是当 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.

     
    [] [返回上一页] [打 印] [收 藏]  
     ∷相关技术评论  (评论内容只代表网友观点,与本站立场无关!) [查看发表评论...]
     
     中国教育资源网免费技术教程下载中心-站内广告 站内广告 中国教育资源网免费技术教程下载中心-站内广告 
     中国教育资源网站内搜索 站内搜索 中国教育资源网站内搜索 
     

       
     中国教育资源网免费技术教程下载中心-栏目导航 栏目导航 中国教育资源网免费技术教程下载中心-栏目导航 
    · Dreamweaver · FrontPage
    · CSSHTML · DOMJS
    · Google排名 · 搜索研究
    · 网络赚钱 · Alexa相关
    · 建站交流 · 源码精华
    · 经验技巧
     
    中国教育资源网免费技术教程下载中心-相关教程  相关技术 中国教育资源网免费技术教程下载中心-相关教程
    · 给IE添加多个HTML编
    · [图文] 手把手教你写私服列
    · 动网生成HTML的办法
    · HTML2JS转换脚本源码
    · 使用ASP生成HTML文件
    · html 另存为/打印/刷
    · 任何浏览器都可以弹
    · 让HTML页面象asp一样
    · [图文] 把Gmail变成HTML空间
    · HTML文档中meta作用
     中国教育资源网免费技术教程下载中心-本月热门教程 本月热门 中国教育资源网免费技术教程下载中心-本月热门教程 
     
     中国教育资源网免费技术教程下载中心-本日热门论文 本日热门 中国教育资源网免费技术教程下载中心-本日热门论文 
     
    关于本站 - 网站帮助 - 免费课件 - 美容 - 绿色软件 - 软件下载 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 网站留言
    浙ICP备06010405号 Email:cnkjz@163.com 技术支持:名流设计
    版权所有 Copyright© 2002-2004 名流