CSS 1px border stroke breaks around border radius

后端 未结 3 578
被撕碎了的回忆
被撕碎了的回忆 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:35

    This is common when having a background and a border specified. The only way to fix this would be to have two separate elements, one with the background color and one with the border color with padding equal to the border-width.

    See this article for a better explanation.

提交回复
热议问题