资讯王 发表于 2010-1-26 07:41:57

简单而有效的html画线代码“hr”实例

最基本的:<hr width=300 size=1 color=#00ffff align=center noshade>其中 width 规定线条的长度,还可以是百分比;color 是颜色,size 当然就是厚度了。
align 规定线条位置,left、right、center。
noshade 是否有立体效果。

两头渐变透明:<hr width=80% size=3 color=#00ffff style="FILTER: alpha(opacity=100,finishopacity=0,style=3)">右边渐变透明:<hr width=80% size=3 color=#00ffff style="FILTER: alpha(opacity=100,finishopacity=0,style=1)">画虚线:<hr width=80% size=1 color=#00ffff style="border:1 dashed #00ffff">画双线:<hr width=80% size=3 color=#00ffff style="border:3 double green">立体效果:<hr width=80% size=3 color=#00ffff style="filter:progid:DXImageTransform.Microsoft.Shadow(color:#f6ae56,direction:145,strength:15)">
钢针效果(^_^):<hr width=80% size=3 color=#00ffff style="filter:progid:DXImageTransform.Microsoft.Glow(color=#00ffff,strength=10)">纺棰形:<hr width=80% size=30 color=#00ffff style="filter:alpha(opacity=100,finishopacity=0,style=2)">
页: [1]
查看完整版本: 简单而有效的html画线代码“hr”实例