Just Study # Computer Science and Technology
itech · 2008-04-08(近似)
<< CSS 2.0中文手册(8)font-weight
|
首 页
|
CSS 2.0中文手册(10)text-underline-position >>
CSS 2.0中文手册(9)text-decoration
2006年09月12日
Tag:
CSS
中文
属性
手册
text-decoration
版权声明
:转载时请以超链接形式标明文章原始出处和作者信息及
本声明
http://itech.blogbus.com/logs/3284443.html
text-decoration
版本:CSS1 兼容性:IE4+ NS4+ 继承性:无
语法:
text-decoration :
none
||
underline
||
blink
||
overline
||
line-through
取值:
none
:
默认值
。无装饰
blink
:
闪烁
underline
:
下划线
line-through
:
贯穿线
overline
:
上划线
说明:
检索或设置对象中的文本的装饰。
有
href
特性的
a
,以及
u
,
ins
对象默认值为
underline
。
对象
strike
,
s
,
del
,默认值是
line-through
。
假如
none
值在属性声明的最后,所有的先前的其他取值都会被清除。例如,声明
text-decoration: underline overline blink none
等于声明
text-decoration: none
。
假如对象没有文本(如
img
元素)或者是空元素(如:<EM></EM>), 此属性不会发生作用。
假如你设置
body
对象的此属性值为
none
,
a
对象将依然保持其原有的下划线样式。除非你针对
a
对象声明此属性值。
指定块对象的此属性将影响其所有内联子对象。而此影响一旦发生,块对象容器最终会受到影响。
在IE4+中可用的值为
overline
和
blink
。虽然
blink
值被提供,但它不会被作用。
此属性对于
currentStyle
对象而言是只读的。对于其他对象而言是可读写的。
对应的脚本特性为
textDecoration
。
示例:
div { text-decoration : underline; }
div { text-decoration : underline overline; }
随机文章:
CSS 2.0中文手册(14)line-height
2006年09月19日
CSS 2.0中文手册(13)text-transform
2006年09月18日
CSS 2.0中文手册(12)font-variant
2006年09月15日
CSS 2.0中文手册(11)text-shadow
2006年09月14日
CSS 2.0中文手册(10)text-underline-position
2006年09月13日
收藏到:
Del.icio.us
引用地址:
荆柴
发表于
12时14分54秒
|
编辑
|
继续话题
|
转发
|
推荐
发表评论
原始快照:web.archive.org