Skip to content

[css] 第144天 说下你对background-size的理解,它有什么运用场景? #1162

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第144天 说下你对background-size的理解,它有什么运用场景?

Activity

NicholasBaiYa

NicholasBaiYa commented on Sep 7, 2019

@NicholasBaiYa

设置背景图的大小,一般用来设置背景图的大小。

cxwht

cxwht commented on Sep 7, 2019

@cxwht

background-size要写在background-image后面,否则background-size不会生效
如果一个后面的一个样式修改了background-image,则background-size也要一起修改,否则原先设置的background-size会失效

andypoplar

andypoplar commented on Mar 21, 2020

@andypoplar

background-size要写在background-image后面,否则background-size不会生效
如果一个后面的一个样式修改了background-image,则background-size也要一起修改,否则原先设置的background-size会失效

我刚才试了下,background-size放在background-image前面可以呀

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@NicholasBaiYa@cxwht@andypoplar

        Issue actions

          [css] 第144天 说下你对background-size的理解,它有什么运用场景? · Issue #1162 · haizlin/fe-interview