顶部的负值在 IE 中不起作用
以下 css 在 IE 8 中不起作用。
content: ' ';
position: absolute;
left: 0px;
top: -10px; //--- this is not working in IE.
该组件在 IE 中消失。而在其他浏览器中这工作正常。
包装div css:
clear: both;
margin: 0px auto;
width: 350px;
position: relative;
Following css does not work in IE 8.
content: ' ';
position: absolute;
left: 0px;
top: -10px; //--- this is not working in IE.
The component disappears in IE. while in other browsers this works fine.
The wrapping div css:
clear: both;
margin: 0px auto;
width: 350px;
position: relative;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过查看您的小提琴:
您正在
form
内添加div
。尝试将div
放在form
标记之外。可能是你有一些form
css 导致了这个问题。您发布的小提琴在我身边的 IE 8 上运行良好。
By looking at your fiddle:
You are adding
div
inside aform
. Try takingdiv
outside ofform
tag. May be you have someform
css that is causing this.And the fiddle you have posted works fine on IE 8 at my side.
2种可能的解决方案,无需查看更多代码:
还不能发表评论,所以将其发布为答案
2 possible solutions without seeing more of the code:
can't post a comment yet so posting it as an answer