Border-radius: 50% not producing perfect circles in Chrome

后端 未结 1 1037
迷失自我
迷失自我 2020-12-18 03:17

Usually border-radius: 50% works fine for most applications, and Chrome produces what looks like a circle. But in this instance, I am trying to continually rota

相关标签:
1条回答
  • 2020-12-18 03:40

    It's caused by the roundings in the way the "radius" is calculated. Since the size is an even number the border is "in-between" two pixels... long history, at the end:

    Workarround: Set your divs circles size an "odd" number of pixels.

    $ring-medium-outer: 437px;
    $ring-medium-inner: 381px;
    
    0 讨论(0)
提交回复
热议问题