What is the default SVG unit in CSS?

前端 未结 1 1867
执念已碎
执念已碎 2021-01-28 16:51

I would like to convert a transform SVG attribute into a CSS transform. Here it is:




        
相关标签:
1条回答
  • 2021-01-28 17:34

    The default (user) unit is px.

    One px unit is defined to be equal to one user unit. Thus, a length of "5px" is the same as a length of "5".

    Per the SVG specification

    0 讨论(0)
提交回复
热议问题