How to make CSS3 rounded corners hide overflow in Chrome/Opera

后端 未结 13 2110
无人及你
无人及你 2020-11-22 09:10

I need round corners on a parent div to mask content from its childen. overflow: hidden works in simple situations, but breaks in webkit based browsers and Oper

13条回答
  •  不知归路
    2020-11-22 09:53

    As for me none of the solutions worked well, only using:

    -webkit-mask-image: -webkit-radial-gradient(circle, white, black);
    

    on the wrapper element did the job.

    Here the example: http://jsfiddle.net/gpawlik/qWdf6/74/

提交回复
热议问题