我在 chrome 中遇到了一些定位的神秘问题。 关于我的一页:http://www.iphonedeksler.no/
右边的 div,带有 class="content"
,在 chrome 中太低了,但在 firefox 和 IE 中完美。
更神秘的是,当您检查并切换“float:right;”时css 规则关闭,然后再次打开,它会按应有的方式对齐。
这是 chrome 的错误吗,我应该只对 chrome 使用 css hack 吗?
最佳答案
似乎 .main { clear: both; }
搞乱了 .content
div 对齐方式。
如果您删除 clear: both
,您将解决对齐问题。
关于CSS,无法在 chrome 中对齐 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15254407/