html - div 不会在 IE 10 中对齐,但在 Firefox 中工作正常

标签 html css firefox

我有一个看起来像这样的表格,enter image description here

这就是表单的外观,它在 FireFox 中看起来很完美,我的问题是,当我在 IE 10 中查看它时,它看起来像这样 jsFiddle 我没有使用很多由网页设计软件创建的 css 和我添加的一行居中 div,就是这样

#wrapper {
width: 600px;
margin: auto;
}

如果按照我的方式进行,我不会允许在 IE 中查看它,但我不会,所以我如何才能在不破坏其他浏览器的情况下解决这个问题?

最佳答案

改变这个:-

<div id="top" style="float:&quot;left&quot;; width: 286px;" width: "270px" height: "292px">

对此:-

<div id="top" style="float:left; width: 286px;" width: "270px" height: "292px">

会让它发挥作用。

更新的 jsFiddle:-

http://jsfiddle.net/7unvj/6/

关于html - div 不会在 IE 10 中对齐,但在 Firefox 中工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17635280/

相关文章:

javascript - 滚动时移动图像

javascript - Firefox 重新加载 JavaScript

javascript - 在 firefox 中运行 node.js 和 socket.io 时出现 CORS 错误

html - 在 Firefox 上,溢出 : hidden works, 但滚动条和空格仍然存在

javascript - Codeigniter:如何从不同的 View 访问 css 文件?

html - css 菜单无法正常工作

html - Box-Shadow 没有出现?

javascript - react native : How to set <TextInput/>'s height and width to <View/> container?

css - 如何让 css float 属性与四个 div 一起工作?

html - 提交按钮不会正确排列