简体   繁体   English

Safari中的CSS圆角圆角

[英]CSS lumpy rounded corners in safari

I'm trying to make a round button using css with these attributes: 我正在尝试使用具有以下属性的css制作圆形按钮:

width: 60px;
height: 60px;
color: #5A5A5A;
border-radius: 50%;
border: 2px solid;
display: inline-block;

The result is fine in chrome but in safari it has "lumpy" edges. 结果在铬色中很好,但在野生动物园中却有“块状”边缘。 Is there any way to get correctly rounded edges? 有什么方法可以使边缘正确倒圆吗?

http://jsfiddle.net/5gh75oab/ http://jsfiddle.net/5gh75oab/

舍入不均匀

Depending on the version of Safari you are using, it could be outdated and not able to interpret things as clearly as other browsers. 根据您使用的Safari版本,它可能已过时,无法像其他浏览器一样清晰地解释事物。 And often new codes or things you can do in web languages can be left behind. 而且经常会留下新的代码或您可以使用网络语言进行的操作。 Stuff like rounded corner is not compatible with older IE browsers or Safari etc. 圆角之类的东西与较旧的IE浏览器或Safari等不兼容。

A workaround is using a webkit that applies to Safari. 解决方法是使用适用于Safari的Webkit。

Look at this reference and from there, it should be straightforward and fix your issue. 查看此参考资料,从那里开始,它应该很简单并解决您的问题。

link here 链接到这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM