V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
TomatoYuyuko
V2EX  ›  CSS

问一个 css 的问题

  •  
  •   TomatoYuyuko · Nov 16, 2018 · 3064 views
    This topic created in 2729 days ago, the information mentioned may be changed or developed.

    这个样式后面那个 fixed 0/cover 是什么语法?教程里没查到,有学名吗? 是我孤陋寡闻了= =

    3 replies    2018-11-16 11:41:59 +08:00
    morethansean
        1
    morethansean  
       Nov 16, 2018
    background-size.
    你看文档啊……为何要在教程里查东西,教程又不是文档里的每一个点都会讲的。
    charlesx
        2
    charlesx  
       Nov 16, 2018   ❤️ 1
    这是 background 的缩写语法

    fixed 0 是 background-position
    cover 是 background-size

    font 里也会有这个斜杠

    baidu 是个好东西
    shapl
        3
    shapl  
       Nov 16, 2018   ❤️ 1
    简写形式

    background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] / [ background-size] [background-origin] [background-clip];
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4725 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 00:13 · PVG 08:13 · LAX 17:13 · JFK 20:13
    ♥ Do have faith in what you're doing.