Change x value of SVG text from CSS

后端 未结 3 1774
谎友^
谎友^ 2021-01-18 23:19

Is there anyway to change the x value of this text from my stylesheet?

< text class=\"jqx-chart-axis-text\" x=\"7\" y=\"11\" width=\"50\" height=\"37\" cursor=\"d

3条回答
  •  梦谈多话
    2021-01-18 23:56

    You can indirectly affect it, but x isn't a css property (yet).

    You can e.g affect text-anchor with CSS. In the future it should hopefully become possible to style the transform in svg content too, but atm it's not supported by all browsers.

提交回复
热议问题