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

ie 与 谷歌 的 css 问题。在谷歌下 .c 盒子的宽度是 1320px。 而 ie 是 460px(不超出父盒子.b)头痛!

  •  
  •   LZYPPP · 2019-06-28 17:59:34 +08:00 · 3264 次点击
    这是一个创建于 1735 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <meta charset="UTF-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="ie=edge" http-equiv="X-UA-Compatible"> <title>Document</title> <style> .a { width: 500px; height: 500px; background: #448899; overflow: hidden; position: relative; } <pre><code>.b { width: 100%; height: 400px; background: #892989; position: absolute; } .c { height: 350px; display: flex; align-items: center; background: turquoise; position: absolute; } .c>li { flex-shrink: 0; width: 200px; height: 300px; margin: 0 10px; background: chocolate; } </code></pre> </style>
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    LZYPPP
        1
    LZYPPP  
    OP
       2019-06-28 18:00:28 +08:00
    。。。。。。
    LZYPPP
        2
    LZYPPP  
    OP
       2019-06-28 18:00:39 +08:00
    。。。。。。。。。
    LZYPPP
        3
    LZYPPP  
    OP
       2019-06-28 18:00:45 +08:00
    。。。。。。。。。。。。
    LZYPPP
        4
    LZYPPP  
    OP
       2019-06-28 18:00:55 +08:00
    什么情况!!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1529 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:09 · PVG 01:09 · LAX 10:09 · JFK 13:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.