2像素的红色虚线边框实例页面

代码:

CSS代码:
.border_dashed{
    width:260px;
    height:180px;
    border:2px dashed red;
    background:yellow;
}
                
HTML代码:
<div class="border_dashed"></div>
                

效果: