[英]White borders display when setting border radius
I'm working with the react material-ui framework and when I try to set border-radius
for the background <div>
of the circle svg
a narrow white border is displayed in Chrome. 我正在使用react material-ui框架,当我尝试为circle
svg
的背景<div>
设置border-radius
,Chrome中会显示一个窄的白色边框。
Does any one know How I can hide this white border and make the stroke edge smooth and sharp? 有没有人知道如何隐藏这个白色边框并使笔划边缘光滑锐利?
I set this css code: 我设置了这个css代码:
svg {
border-radius: '50px';
background-color: white;
}
and here is the sample code that I work on: Code Pen link 这是我工作的示例代码: Code Pen链接
Try to add: 尝试添加:
svg {
shape-rendering: optimizeSpeed;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.