设为首页
加入收藏
站内地图
旧版入口

制作虚线效果水平线

作者:佚名 出处:网络转载 时间:09-30 点击:

内容载入中...
<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=#000000 size=1>。按F12看看吧,效果是不是很不错!
  或者不预定义好CSS样式,直接在<hr>中加入代码:
<hr style="BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted" color=#000000 size=1>

  更为简单的方法(借鉴于经典论坛上的介绍):<hr style="border:1px dashed red; height:1px">
收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口
推荐信息