方法1:
在<head>中預先定義好CSS:
<STYLE type=text/css>
.dotline {
BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted
}
</STYLE>
然後修改水平線的代碼爲:<hr class=dotline color=#111111 size=1>
方法2:
直接在<hr>中使用如下代碼:(本人使用此代碼實現)
<hr style="BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted" color=#111111 size=1>
方法3:
更爲簡單的方法,使用如下代碼 (不知哪的問題,此代碼在本人機器上沒有效果,大家可以試一下)
<hr style="border:1px dashed; height:1px" color="#DDDDDD">
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1429861