我们正在尝试渲染一个圆形,在其中我可以放置一个数字。我希望圆形使用实线、虚线或点线边框。此外,颜色可以变化,并且所有内容都在CSS中定义,因此尝试使用图像来实现这一点将不是最佳选择。
在IE11中,它似乎渲染得很好。而在Chrome(当前版本为42.0.2311.135 m或Canary)中,圆形顶部有一个间隙。
Chrome示例:
IE示例:
是否有人遇到过这个问题,如何解决?
circle-score-label {
height: 30px;
width: 30px;
}
circle-score-label .circle {
margin-left: auto;
margin-right: auto;
border-radius: 50%;
width: 100%;
height: 100%;
position: relative;
border: 3px solid black;
}
circle-score-label .solid-conf {
border-style: solid;
}
circle-score-label .dotted-conf {
border-style: dotted;
}
circle-score-label .dashed-conf {
border-style: dashed;
}
在IE11中,它似乎渲染得很好。而在Chrome(当前版本为42.0.2311.135 m或Canary)中,圆形顶部有一个间隙。
Chrome示例:
IE示例:
是否有人遇到过这个问题,如何解决?
circle-score-label
需要加上.
(虽然这可能是一个打字错误)。 - jbutler483