vuejs/v2.vuejs.org

v-bind:style use quotes with kebab-case did not work

hua-qi opened this issue · 2 comments

document link

document image

Use quotes with kebab-case for the CSS property names that did not work.

image

env:

windows 10

Chrome 104.0.5112.81

The document is not rigorous enough.
Should it be changed?

"font-size" need a string with a length unit. E.g. "font-size": "32px" works but "font-size": 32 won't.