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

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

  •  
  •   LZYPPP · Jun 28, 2019 · 4208 views
    This topic created in 2502 days ago, the information mentioned may be changed or developed.
    <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
       Jun 28, 2019
    。。。。。。
    LZYPPP
        2
    LZYPPP  
    OP
       Jun 28, 2019
    。。。。。。。。。
    LZYPPP
        3
    LZYPPP  
    OP
       Jun 28, 2019
    。。。。。。。。。。。。
    LZYPPP
        4
    LZYPPP  
    OP
       Jun 28, 2019
    什么情况!!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2897 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:10 · PVG 17:10 · LAX 02:10 · JFK 05:10
    ♥ Do have faith in what you're doing.