日期:2014-05-17  浏览次数:20682 次

怎么在html代码中画虚线
怎么在html代码里面画一整行的虚线,下划线或别的线之类的。
谢谢大家了!

------解决方案--------------------
css里的线用的是border的边框 实线 虚线 都可以,文字可以使用下划线 

其他的线可以用js做到 类似斜线 弧线等
------解决方案--------------------
border-style: solid dotted dashed double;
实线上边框、点线右边框、虚线下边框和一个双线左边框。
------解决方案--------------------
例子:<table style="boder:1px dashed #cccccc;"><tr><td></td></tr></table>
------解决方案--------------------
<div style="padding:0; margin:5px 0; height:1px; overflow:hidden; font:1px/1px simsun; border-bottom:1px dashed #999"></div>

------解决方案--------------------
<div style="height:0px;border-bottom:1px dashed red"></div>
至于是border的那个边自己选吧。
------解决方案--------------------
<div style="border:1px dashed #ccc"></div>