문제

Is it possible to do this kind of thing with CSS?

From my Googling, I can't find anything helpful.

도움이 되었습니까?

해결책

It can be done with CSS3's radial gradients:

enter image description here

CSS:

div{
  background: 
    radial-gradient(
      circle at -40px 50px, 
      transparent 80px,
      red 80px
    );
    height: 100px;
    width: 100px;
}
body { background-color: blue; }

http://jsfiddle.net/7WHAz/2/

다른 팁

this may work... but just if a plain background color I'm afraid:

http://jsfiddle.net/7WHAz/

change the:

 div:before {        
    background-color:white; 
}

to the color your background use

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top