- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在实现 SVG Tiny 1.1,但我无法理解“用户单元”的概念。
SVG 1.1 规范将每个没有指定单位(例如“mm”、“cm”、“pt”等)的
在实现接口(interface)“SVGLength”时,遇到了4个与长度值相关的属性;
value
,
unityType
,
valueInSpecifiedUnit
,
valueAsString
.最后三个属性对我来说已经足够清楚了。
valueInSpecifiedUnit
属于单位类型unitType
. valueAsString
等于 valueInSpecifiedUnit
+ unitType
的字符串值。例如:“10mm”最佳答案
规范 says :
user units
A coordinate value or length expressed in user units represents a coordinate value or length in the current user coordinate system. Thus, 10 user units represents a length of 10 units in the current user coordinate system.
if the ‘width’ or ‘height’ attributes on the outermost svg element are in user units (i.e., no unit identifier has been provided), then the value is assumed to be equivalent to the same number of "px" units
关于SVG 1.1 : What is "user unit" and how to convert user unit into absolute unit(eg: millimeter)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7087586/
我是一名优秀的程序员,十分优秀!