CSS3 outline使用实例页面
代码:
CSS代码:
.outline{ width:200px; height:80px; margin:10px; padding:15px; border:2px solid #cad5eb; outline:dotted #beceeb 3px; outline-offset:5px; }
HTML代码:
<div class="outline">是否可见虚线形式的轮廓外框?</div>
效果:
是否可见虚线形式的轮廓外框?
.outline{ width:200px; height:80px; margin:10px; padding:15px; border:2px solid #cad5eb; outline:dotted #beceeb 3px; outline-offset:5px; }
<div class="outline">是否可见虚线形式的轮廓外框?</div>