干炸牛_bian

导航

 

svg 中的g标签, 算是比较特殊

1 没有x y属性

2 没有width height 属性

3 不能fill

4 ....

g标签基本只管分组问题, 其他功能一概不提供

要解决这些问题, 直接在g标签中 嵌套一个svg标签, 其他需要放入g标签中的东西 直接放入svg标签中 由svg标签来管理x y widthheight 问题

至于svg 标签 是没有fill功能的, 所以还要在svg中, 加入一个rect标签, 来用于fill 颜色, rect的 width和height 填入100%即可

posted on 2018-11-09 10:43  干炸牛_bian  阅读(1450)  评论(0)    收藏  举报