互联网浏览器 CSS 修复。 Internet Explorer 中的浮动出现问题
我有一个简单的问题,但还没有弄清楚可能的解决方案。我使用 CSS 重置来解决 Internet Explorer 的问题,但没有骰子。我也不想使用相对-绝对定位。如果您通过 firefox、chrome 或 safari 访问 http://securitycamerasflorida.net,它看起来就是我想要的内容和侧边栏彼此相邻。它们都是浮动定位的,但如果您单击其中一个城市,您可以在 IE 中看到侧边栏被推到页面底部。
I have a simple problem but have not figured out what might be solution just yet. I used a css reset to fix the issue with internet explorer, but no dice. I also do not want to use relative - absolute positioning. If you go to http://securitycamerasflorida.net via firefox, chrome, or safari it looks the way I wanted which content and sidebar is next to each other. They are both positioned with float but if you click on one of the cities you can see in IE that sidebar is pushed at the bottom of the page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许这可以帮助您:关于条件注释
Maybe this can help you: About Conditional Comments
尝试在
上添加右边距,并从
中删除左边距,
您可以当您将边距设置在与浮动方向相同的方向时,IE6 中会出现古怪的双边距。
Try putting a right margin on your
<div id="content">
and remove the left margin from your<div id="sidebar">
You can a wacky double margin in IE6 when you put a margin in the same direction you're floating.