V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Can I use?
http://caniuse.com/
Less
http://lesscss.org
Cool Libraries
Bootstrap from Twitter
Jetstrap
TomatoYuyuko
V2EX  ›  CSS

问一个 css 的问题

  •  
  •   TomatoYuyuko · 2018-11-16 11:22:52 +08:00 · 2437 次点击
    这是一个创建于 1981 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    fixed 0 是 background-position
    cover 是 background-size

    font 里也会有这个斜杠

    baidu 是个好东西
    shapl
        3
    shapl  
       2018-11-16 11:41:59 +08:00   ❤️ 1
    简写形式

    background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] / [ background-size] [background-origin] [background-clip];
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5614 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:25 · PVG 14:25 · LAX 23:25 · JFK 02:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.