简体   繁体   English

带有CSS的SVG圆半径

[英]SVG Circle radius with CSS

I tried to change the radius of SVG Circle with css, and it works in all major browser versions. 我试图用css更改SVG Circle的半径,并且它可以在所有主要浏览器版本中使用。

The question is why CSS lint complaining about r property while all browsers support this just fine!? 问题是,为什么CSS皮棉抱怨所有浏览器都支持r属性,这还好!

The ability to modify geometric properties, such as r , with CSS, is a feature of the upcoming SVG 2 specification. 修改几何性质,如能力r与CSS,是即将SVG 2规范的特征。 SVG 2 is not yet a full recommendation, and so far only Chrome (and it sounds like Safari) have implemented this. SVG 2尚未完全推荐,到目前为止,只有Chrome(听起来像Safari)已经实现了此功能。

I imagine once SVG 2 is a full recommendation, CSS Lint will be updated. 我想一旦SVG 2全面推荐,CSS Lint将被更新。

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

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