我有一个问题,Chrome在一个网站的首页打破了flexbox CSS,而FF没有。
<div class="intro_container">
<div id="top_text1" class = "intro_items intro_item_1">
....
</div>
<div id="top_text2" class = "intro_items intro_item_1">
....
</div>
</div>和CSS
div.intro_container {
width: 100%;
background:;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
div.intro_items {
background: white;
border: .1em solid #000093;
margin: 0.5em;
padding: 3%;
flex: 1 0 40%;
}我们将非常欢迎任何帮助。
发布于 2015-05-04 18:19:05
在我看来,问题不在于浏览器或flex属性问题。
问题出在以下CSS样式上,
div#top_text1 {margin-top: -3%;} layout.css文件中的行号:325
因此,只需删除此CSS样式添加检查它将工作...
发布于 2015-05-27 13:13:34
我也遇到了类似的问题...我有一个网页,可以在IE,火狐,歌剧和Safari…但是DIV的宽度现在在Chrome中是“坏的”...就在上个星期左右。
检入Firebug (等)我必须将某个DIV设置为比正常大一个像素,否则里面的图片会被“挤出来”。
直到明天才能访问我的服务器来实际编辑任何内容,但“inspect element”显示这是一种解决方法。不知道为什么这个问题已经出现了它丑陋的头-页面已经工作了一年多了:-(
https://stackoverflow.com/questions/30023250
复制相似问题