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>