css border-radius: 5px; 안쪽으로 할수 잇나요>?
본문
답변 2
<style>
.circle {
position:absolute; width:20px; height:20px; border-radius:20px; background:#222;
}
.circle1 { left:-10px; top:-10px; }
.circle2 { right:-10px; top:-10px; }
.circle3 { left:-10px; bottom:-10px; }
.circle4 { right:-10px; bottom:-10px; }
</style>
<div style="position:relative; width:200px; height:100px; border:2px solid #222; overflow:hidden;">
<div class="circle circle1"></div>
<div class="circle circle2"></div>
<div class="circle circle3"></div>
<div class="circle circle4"></div>
</div>
안쪽으로 하시지 마시고
원 형태의 div 객체를 만드신뒤에 absolute 로 적당한 위치에 자리잡게 하심이 어떨지요..
물론 상위 객체는 overflow:hidden; 값을 주시구요.
답변을 작성하시기 전에 로그인 해주세요.