互联网浏览器 CSS 修复。 Internet Explorer 中的浮动出现问题

发布于 2024-08-05 03:13:20 字数 295 浏览 1 评论 0原文

我有一个简单的问题,但还没有弄清楚可能的解决方案。我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

無處可尋 2024-08-12 03:13:20

也许这可以帮助您:关于条件注释

Maybe this can help you: About Conditional Comments

网名女生简单气质 2024-08-12 03:13:20

尝试在

上添加右边距,并从

您可以当您将边距设置在与浮动方向相同的方向时,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文