Skip to content

如何通过v-bind:style动态生成背景图? #2352

@For-me

Description

@For-me

在通过v-for出来子集之后,要生成当前节点的背景图,通过v-bind:style="{background:url(list.Cover)}"
无法正确便利出结果.
[Vue warn]: Error when evaluating expression "{background:url(list.Cover)}". Turn on debug mode to see stack trace.
请尤大大解答下,谢谢

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

    Issue actions