A single label implements a divider line:
. demo_line_01{
0; Center;}
Pros: Simple Code
Skillfully use the background color to achieve the separation line:
. demo_line_02{
1px; Center;}. 20px;}
Advantages: Simple code, adaptive width
Inline-block Implementing Divider Lines:
.demo_line_03{Width600px;}.Demo_line_03 b{background: #ddd; margin-top: 4PX; display: inline-block; width: 180px; height: 1PX; _overflow: hidden; vertical-align: middle;}. demo_line_03 span{display: inline-block; width: 220px; vertical-align: middle;}
Pros: Text can be multiple lines
Floating Implementation Separator lines:
. demo_line_04{ width:600px;}. demo_line_04{ 1;}. hidden;}
Advantages: NUN
To implement a separator line with characters:
class="demo_line_05"> ———————————<span> Small separator line characters for </span> ———————————— </div>
. demo_line_05{ -1px; #ddd;}. margin:20px;}
Advantages: The code is simple above the description of the separation line, perhaps there are other more appropriate wording, look at the environment picking it!
Reference: http://www.daqianduan.com/4258.html
CSS Divider Lines