游客:
注册
|
登录
|
帮助
网友俱乐部
»
网页制作
»
HTML/CSS教程
» CSS手册简编:列表属性
网友生活网
|
网友学堂
如何获得金币?
诚招斑竹
IP归属地查询 PR查询 收录查询 whois查询
免费超短2级域名,your.jpy.cc
传世私服
|
传奇世界私服
注册亚洲交友中心,找个人来同居吧!
免费存储空间,免费网络硬盘
‹‹ 上一主题
|
下一主题 ››
投票
交易
悬赏
活动
打印
|
推荐
|
订阅
|
收藏
标题: CSS手册简编:列表属性
ljjk5
元帅
UID 46706
精华
1
积分 99426
帖子 49690
威望 554
金币 48489
热心 505
阅读权限 100
注册 2007-2-25
状态 离线
#1
使用道具
发表于 2007-4-15 05:48
资料
个人空间
主页
短消息
加为好友
CSS手册简编:列表属性
CSS属性:
7、列表属性:
这里的属性用来描述列表(list)的一系列属性。
list-style-type属性描述用于列表每一项前使用的符号:
属性名称: 'list-style-type'属性值: disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none初始值: disc适合对象: 列表元素是否继承: yes百分比备注: 被禁止
属性值含义为:
disc
:圆饼形。
circle
:空心圆形。
square
:方形。
decimal
:十进制数值。
lower-roman
:小写罗马数字。
upper-roman
:大写罗马数字。
lower-alpha
:小写希腊字母。
upper-alpha
:大写希腊字母。
例如:
<STYLE>OL { list-style-type: lower-roman }</STYLE><BODY><OL><LI> This is the first item.<LI> This is the second item.<LI> This is the third item.</OL></BODY>
还可以利用list-style-image把列表前面的符号换为图形:
属性名称: 'list-style-image'属性值: <url> | none初始值: none适合对象: 列表元素是否继承: yes百分比备注: 被禁止
<url>可以是绝对地址,也可以是相对地址。
list-style-position属性用于描述列表的位置显示:
属性名称: 'list-style-position'属性值: inside | outside初始值: outside适合对象: 列表元素是否继承: yes百分比备注: 被禁止
属性值outside和inside分别表示在BOX外部显示或内部显示
,例如:
<STYLE type="text/css">UL { list-style: outside }UL.compact { list-style: inside } </STYLE> <UL><LI>first list item comes first<LI>second list item comes second</UL><UL class=compact><LI>first list item comes first<LI>second list item comes second</UL>
list-style属性为以上属性的快捷方式:
属性名称: 'list-style'属性值: <'list-style-type'> || <'list-style-position'> || <'list-style-image'>初始值: no适合对象: 列表元素是否继承: yes百分比备注: 被禁止
例如:
UL { list-style: upper-roman inside } /* 对任何UL有效*/UL " UL { list-style: circle outside } /* 对任何UL内部的UL标记有效*/
[广告]
免费域名(Free Subdomain)
免费空间(Free hosting)
PR查询(Google Pagerank)
投票
交易
悬赏
活动
控制面板首页
编辑个人资料
积分交易
公众用户组
好友列表
个人空间管理
基本概况
流量统计
客户软件
发帖量记录
论坛排行
主题排行
发帖排行
积分排行
在线时间
管理团队
管理统计
当前时区 GMT+8, 现在时间是 2008-11-22 02:09
信产部ICP备案:
京ICP备05066424号
北京市公安局网监备案:1101050648号
Powered by
Discuz!
5.5.0
TOP
清除 Cookies
-
联系我们
-
网友俱乐部
-
Archiver
-
WAP