Skip to content

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

@hua-qi

Description

@hua-qi

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

Activity

hua-qi

hua-qi commented on Aug 27, 2022

@hua-qi
Author

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

Jinjiang

Jinjiang commented on Aug 27, 2022

@Jinjiang
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Jinjiang@hua-qi

        Issue actions

          v-bind:style use quotes with kebab-case did not work · Issue #2963 · vuejs/v2.vuejs.org