詳解CSS定義HR水平線的幾種樣式
編輯:CSS詳解  
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xHtml1-transitional.dtd">
- <Html XMLns="http://www.w3.org/1999/xHtml" XML:lang="en" lang="en">
- <head>
- <title>CSS定義HR水平線</title>
- <style type="text/CSS">
- <!--
- .hr0{ height:1px;border:none;border-top:1px dashed #0066CC;}
- .hr1{ height:1px;border:none;border-top:1px solid #555555;}
- .hr2{ height:3px;border:none;border-top:3px double red;}
- .hr3{ height:5px;border:none;border-top:5px ridge green;}
- .hr4{ height:10px;border:none;border-top:10px groove skyblue;}
- -->
- </style>
- </head>
- <body>
- <hr class="hr0" />
- <hr class="hr1" />
- <hr class="hr2" />
- <hr class="hr3" />
- <hr class="hr4" />
- </body>
- </Html>