CSS 1px border stroke breaks around border radius

后端 未结 3 579
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 17:11

This is for web dev. When using a 1px border radius on a circle or a square with really rounded corners, the stroke starts to break. If we were to change it to 2px\'s it wou

3条回答
  •  抹茶落季
    2020-12-14 17:43

    add box-shadow: 0 0 1px 0px white inset, 0 0 1px 0px white; that will give you the anti-aliasing you're looking for.

提交回复
热议问题