定位:style 和 computed style 有不同的值 safari

Positioning: style and computed style have different values safari

我在使用 Safari 7.0 中的字母间距样式时遇到了一些问题。我有一个输入,我在其中输入页面中文本的值字母间距样式。 但是在我输入值后,计算样式和规则样式有区别。 例如我输入 36.4px 字母间距。 这是我的计算和规则风格: enter image description here

我尝试用控制台更改字母间距,但我遇到了同样的问题 trouble

我该如何解决这个问题?

一般来说,十进制表示法适用于 % 而不是 px。请参考以下 SO 答案:
Are the decimal places in a CSS width respected?