테스트 사이트 - 개발 중인 베타 버전입니다

css border-radius: 5px; 안쪽으로 할수 잇나요>? 채택완료

그누보드초보이용자 5년 전 조회 5,162

css     border-radius: 5px; 안쪽으로 할수 잇나요>?

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

 

<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>

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

그누보드초보이용자
5년 전
감사합니다.

댓글을 작성하려면 로그인이 필요합니다.

안쪽으로 하시지 마시고

원 형태의 div 객체를 만드신뒤에 absolute 로 적당한 위치에 자리잡게 하심이 어떨지요..

물론 상위 객체는 overflow:hidden; 값을 주시구요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

그누보드초보이용자
5년 전
감사합니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인