简体   繁体   English

CSS:增加div的轮廓和边框之间的距离

[英]CSS: increase the gap between the outline and border of div

Am stack!... Is there a way to increase the gap between the outline (overall line) and the border ( div 's immediate line) ? 是堆栈!...有没有办法增加outline (整体线)border div的立即线)之间的距离?

For instance, I got: 例如,我得到了:

[CODE] [码]

    <div style="border:5px solid red; outline:3px solid green \\--->GAP ?; >
//Inside Div

|---------------`OutLine`--------------------



-------> *this GAP*



      |-------------------`border`--------------------

          |---------------`<div>`--------------------|

使用outline-offset属性— JSFiddle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM