How to get perfect border radius on images in all browsers?

前端 未结 7 488
渐次进展
渐次进展 2020-12-18 01:27

Currently I\'m getting like this in Chrome, Safari, Mobile Safari and Opera. edges are rough.

<         


        
7条回答
  •  悲&欢浪女
    2020-12-18 02:15

    all browsers have different CSS capabilities, and handle them differently.

    if you want the corners to look exactly the same in all browsers, you'll just have to put the curves in the actual image, and not rely on CSS.

    An alternative is to use a background image on a div instead, which may get better clipping.

提交回复
热议问题