1. 程式人生 > >HTML分割線效果

HTML分割線效果

HTML分割線效果 
本文轉載自:http://blog.csdn.net/alex8046/article/details/51917069

一、普通

1、<HR> 
2、<HR align=center width=300 color=#987cb9 SIZE=1> 
align 線條位置(可選left、right、center);width 線條長度;color 顏色;size 厚度 
二、特效(效果並不是孤立的,可相互組合)

1、兩頭漸變透明:

<HR style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" width="80%" color=#987cb9 SIZE=3>


2、紡錘形:

HR style="FILTER: alpha(opacity=100,finishopacity=0,style=2)" width="80%" color=#987cb9 SIZE=10>

 

3、右邊漸變透明:

<HR style="FILTER: alpha(opacity=100,finishopacity=0,style=1)" width="80%" color=#987cb9 SIZE=3>


4、左邊漸變透明:

<HR style="FILTER: alpha(opacity=0,finishopacity=100,style=1)" width="80%" color=#987cb9 SIZE=3>


5、虛線:

<HR style="border:1 dashed #987cb9" width="80%" color=#987cb9 SIZE=1>


6、雙線:

<HR style="border:3 double #987cb9" width="80%" color=#987cb9 SIZE=3>


7、立體效果:

<HR style="FILTER: progid:DXImageTransform.Microsoft.Shadow
(color:#987cb9,direction:145,strength:15)" width="80%" color=#987cb9 SIZE=1>


8、鋼針效果:

<HR style="FILTER: progid:DXImageTransform.Microsoft.Glow(color=#987cb9,strength=10)" width="80%" color=#987cb9 SIZE=1>


9.垂直分割線

<table border="1px" cellpadding="0" cellspacing="0" style="height:265px;border-left