四边为虚线边框:border:1px dashed #000; 左边为虚线:border-left:1px dashed #000; 右边为虚线:border-right:1px dashed #000; 顶部边(上边)为虚线:border-top:1px dashed #000; 底部边(下边)为虚线:border-bottom:1px dashed #000;...
border线型主要有:
1、dotted【点状】
2、solid【实线】
3、double【双实线】
4、dashed【虚线】
以虚线为例
四边为虚线边框:border:1px dashed #000;
左边为虚线:border-left:1px dashed #000;
右边为虚线:border-right:1px dashed #000;
顶部边(上边)为虚线:border-top:1px dashed #000;
底部边(下边)为虚线:border-bottom:1px dashed #000;
任意一边不为虚线,其它三边为虚线:border:1px dashed #000;border-right:0;(右)
CSS定义一条水平虚线:height:1px; width:100%; border-bottom:1px dashed #000;
并排:box-sizing:border-box;