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

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

QA

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

답변 2

본문

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

 

3390329810_1592207420.2556.png

이 질문에 댓글 쓰기 :

답변 2

3068291145_1592207953.7207.png

 

<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; 값을 주시구요.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 110
© SIRSOFT
현재 페이지 제일 처음으로