0
透明な背景と点線の枠を持つカスタムの形状のボタンを作成できますか?ボタンの形は透明で、点線の枠のみ
私は、背景色でこれを実行できるようになったんだけど、私は、任意の色なし、内側を埋めるためにしようとすると、予想通り、何も機能しません。
body{
background: #999
}
button {
height: 50px;
width: 250px;
border: dotted 1px #FFF;
border-bottom: none;
background: none;
position: relative;
}
button:after,
button:before {
content: '';
display: block;
position: absolute;
top: 100%;
width: 0;
height: 0;
border-style: solid;
}
button:after {
border-color: #fff transparent transparent transparent;
border-width: 1px 125px 0 0;
right: 1px
}
button:before {
border-color: transparent transparent #fff transparent;
border-width: 0 125px 1px 0;
left: 0
}
<body>
<button></button>
</body>