怎么在html花一条竖线,怎样在网页中画一条竖线?

hr

横线:


竖线:


table控制:

横线

有很多方法

1.用VML

v\:* { Behavior: url(#default#VML) }

2.用表格

css 竖线的写法

sdfsdf

用样式表最方便,代码简洁,可以统一整个网站的风格。

.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">

2 3

style="width:1000;height:1;border-top:1px dotted

#000000">4

style="width:1000;height:1;border-top:1px

dotted #000000">56

style="width:1000;height:1;;border-top:1px dotted

#000000">

7

style="width:1000;height:1;;border-top:1px dotted #000000;"

frameborder=no>

8

style="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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值