글쎄, 이것은 순수한 광기이지만, 확실히을 할 수있는 방법은있다 :-)하지 크로스 browserly하지만, 어디 보자 :
우리의 마크 업 :
<div id="bubble">
<p>This is madness!</p>
</div>
우리의 CSS :
#bubble {
width:200px;
height:100px;
border:1px solid #000;
-webkit-border-radius:20px;
-moz-border-radius:20px;
border-radius:20px;
}
#bubble p {
margin: 1em;
font-family:Comic Sans MS;/* well, madness it is! */
}
#bubble:before {
content:'';
border:20px solid;
border-color:#fff transparent transparent;
position:absolute;
top:110px;
left:25px;
z-index:2;
}
#bubble:after {
content:'';
border:20px solid;
border-color:#000 transparent transparent;
position:absolute;
top:111px;
left:25px;
z-index:1;
}
,
그 결과 http://jsfiddle.net/MrLWY/
는 난 단지 파이어 폭스 3.6.3이 시험, 그러나 아이디어는 여기에 분명 :-)
두 개의 걸릴 수 있습니다 :
#bubble {
width:200px;
height:100px;
border:1px solid #000;
position:relative;
-webkit-border-radius:20px 20px 20px 0;
-moz-border-radius:20px 20px 20px 0;
border-radius:20px 20px 20px 0;
}
#bubble p {
margin: 1em;
font-family:Comic Sans MS;
}
#bubble:before {
content:'';
width:20px;
height:20px;
background:#fff;
border-left:1px solid #000;
position:absolute;
top:100px;
left:-1px;
}
#bubble:after {
content:'';
-webkit-border-radius:20px 0 0 0;
-moz-border-radius:20px 0 0 0;
border-radius:20px 0 0 0;
border:solid #000;
border-width:1px 0 0 1px;
width:20px;
height:19px;
position:absolute;
top:100px;
left:0;
}
그리고 결과를 : http://jsfiddle.net/ajeN7/
아마도 이것은 여러 가지 방법으로 향상 될 수있다 :
이 튜토리얼을 탭용으로 사용했을 때의 거꾸로 된 테두리로 표시하는 것이 좋습니다. http://css-tricks.com/better-tabs-with-round-out-orders/ –