hr
横线:
竖线:
table控制:
横线 |
有很多方法
1.用VML
v\:* { Behavior: url(#default#VML) }
2.用表格
css 竖线的写法
用样式表最方便,代码简洁,可以统一整个网站的风格。
.td2 { border: solid; margin-top: 2px; margin-right: 2px;
margin-bottom: 2px; margin-left: 2px; padding-top: 5px; padding-bottom:
5px; border-width: 0px 1px; border-color: #99cccc #006699; font-size:
12px; line-height: 150%; padding-right: 5px; padding-left:
5px; color: #333333}
这里定义了表格的两个竖边的宽度和颜色,在页面里只是简单的写上
,多简单!:)水平线不需要用CSS ,直接在代码中加入颜色的十六进制就可以了。
如:
我比较偏爱层,因为如果要组成动态的线条的话,
表格,图片,hr,还是要放到
我一般这样写:
如果会使用滤镜和js的话,可以做成很炫的效果
1
style="width:1000;height:1;;border-top:1px dotted
#000000">
style="width:1000;height:1;border-top:1px dotted
#000000">4
style="width:1000;height:1;border-top:1px
style="width:1000;height:1;;border-top:1px dotted
#000000">
style="width:1000;height:1;;border-top:1px dotted #000000;"
frameborder=no>
8style="width:1000;height:1;;border-top:1px dotted
#000000">9
style="height:100;width:1;border:1px dotted
#000000;zoom:2">线条长度=zoom*height10
style="border:1px dotted #000000">部分不能显示请装IE5.5+
#网站-代码
hr控制
横线:
竖线:
css(div)控制
坚线
横线
关于线的位置:大多线情况还是用绝对位置,即position:absolute。当然,你也可以用相对位置position:relative