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

2019-06-28 17:59:34 +08:00
 LZYPPP
<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
3301 次点击
所在节点    CSS
5 条回复
LZYPPP
2019-06-28 18:00:28 +08:00
。。。。。。
LZYPPP
2019-06-28 18:00:39 +08:00
。。。。。。。。。
LZYPPP
2019-06-28 18:00:45 +08:00
。。。。。。。。。。。。
LZYPPP
2019-06-28 18:00:55 +08:00
什么情况!!!
LZYPPP
2019-06-28 18:10:06 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/578388

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX