How to retrieve current style value with JS as a number and not a word?

前端 未结 0 1311
灰色年华
灰色年华 2021-01-02 17:36

I use getComputedStyle(element)[type], where element is my

tag and type is either fontSize, lineHeight, letterSpacing,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题