CSS 布局在 IE8 中变得疯狂

发布于 2024-10-04 01:47:52 字数 288 浏览 0 评论 0原文

我只能说我的布局在 IE8 中变得疯狂,我不明白为什么。当然,它在其他当前浏览器中看起来是正确的。我花了很多时间试图解决这个问题,但是当我做出任何更改时,他们没有解决这个问题,而是在其他浏览器中发送所有内容。有人可以看一下吗?这超出了我的范围!

页面: http://www.careersinmusic.com/sell-my-music.aspx

非常感谢!!! 富有的

All I can say is my layout went crazy in IE8 and I cannot see why. Of course, it looks correct in other current browsers. I have spent many hours trying to figure it out but when I make any changes, they do not fix this issue and send everything haywire in the other browsers. Can someone please take a look? This one is beyond me!

The page:
http://www.careersinmusic.com/sell-my-music.aspx

MANY thanks!!!!
Rich

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

怼怹恏 2024-10-11 01:47:52

首先,第 132 行的“jQuery”未定义?

well first of all 'jQuery' is undefined on line 132?

空气里的味道 2024-10-11 01:47:52

我在调试 IE8 兼容模式代码时发现的主要问题是缺乏对浮动的清除。

你应该研究CSS如何实现浮动,之后你必须清除浮动,否则事情会变得非常糟糕。

要清除您输入的浮动:

<div style="clear: both;"></div>

这将清除左浮动和右浮动(例如开始一个新部分)。要仅清除其中一个浮动,您可以执行clear: left;或清楚:正确;

这是关于 CSS 浮动的教程:

http://css.maxdesign.com.au/floatutorial/

另外……老实说……html 和 css 都是一团糟。我几乎无法说出其中的一些内容......尽管这可能只是 asp.net 添加了魔法来尝试“帮助”你。

The main issue I can see in debugging your IE8 Compatability Mode On code is your lack of clears on the floats.

You should look into how CSS does floating, you must clear the float afterwards otherwise things can get really janky.

To clear a float you put in:

<div style="clear: both;"></div>

That will clear both left and right float (eg starting a new section). To just clear one of the floats you can do clear: left; or clear: right;

Here's a tutorial on floats with CSS:

http://css.maxdesign.com.au/floatutorial/

Also....honestly....the html and css are a mess. I can barely tell what is going on in some of it....allthough that might just be the asp.net adding in magic to try and 'help' you.

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