网站在除 IE7 之外的所有浏览器中都运行良好,

发布于 2024-08-05 07:14:59 字数 199 浏览 3 评论 0原文

我似乎无法弄清楚为什么我的网站在 IE7 中崩溃,我确信这与 CSS 中的某些内容有关,但我找不到它,这让我发疯。我觉得我看艺术品太久了,我看不出问题出在哪里。有人能以新的眼光来提供帮助吗?谢谢 =)

网站:rburtonart.com

I can't seem to figure out why my website breaks in IE7, I'm sure it has to do with something in the CSS but I can't find it and its driving me nuts. I feel I've been looking at artwork so long I can't see what the problem is. Can anyone come in with a fresh set of eyes and help? Thank you =)

website: rburtonart.com

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

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

发布评论

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

评论(4

浅笑轻吟梦一曲 2024-08-12 07:14:59

我无法确定问题所在,但如果您的 Internet Explorer 遇到问题(谁没有遇到问题?),则 有条件评论是你的朋友!

它们允许您添加仅在 IE 或特定 IE 版本中有效的代码。示例:

<!--[if IE]>
alternate style or stylepage for broken IE implemention of CSS
<![endif]-->


<!--[if IE 7]>
Fix for something broken only in IE7, not any other version.
<![endif]-->

这两个命令在任何其他浏览器中都不会执行任何操作 - 它们只是另一个无害的注释。如果您对那些讨厌的 IE6 用户感到讨厌,您可以针对他们进行升级(升级到其他浏览器或更新版本)。


编辑:找到了
在 IE8 之前,IE 存在浮动和布局问题。我认为这会起作用,因为我在类似的情况下使用了类似的东西。

您需要添加包含 blcok-level 元素的条件注释,以强制标题 DIV 下方的 #content DIV。这应该是空的,并强制其下面的所有内容。
尝试在标题 div 的末尾和声明之间添加以下内容(第 79 行)。如果您发现标题和内容之间的空间太大,您可以对其进行修改。

<!--[if IE 7]>
<div style="clear: both; width: 100%; padding:0; margin:0; height:1px;"> </div> 
<!-- Fix for IE box model issues with content div -->
</div>
<![endif]-->

I can't identify the problem, but if you've got a problem with Internet Explorer (and who doesn't?), then Conditional Comments are your friend!

They let you add code that only active in IE, or a specific IE version. Sample:

<!--[if IE]>
alternate style or stylepage for broken IE implemention of CSS
<![endif]-->


<!--[if IE 7]>
Fix for something broken only in IE7, not any other version.
<![endif]-->

Both of these will do nothing in any other browser -- they become just another harmless comment. If you're feeling hate towards those pesky IE6 users, you can target them for a nag to upgrade (either to another browser, or a more recent version).


EDIT: found it
Before IE8, IE had issues with floats and layout. I think this will work, since I used something similar under similar circumstances.

You need to add a conditional comment containing a blcok-levelelement to FORCE the #content DIV below the header DIV. This should be empty, and force everything below it.
Try adding the following between the end of the header div, and the declaration (line 79). If you see too much space between the header and content, you can tinker with it.

<!--[if IE 7]>
<div style="clear: both; width: 100%; padding:0; margin:0; height:1px;"> </div> 
<!-- Fix for IE box model issues with content div -->
</div>
<![endif]-->
看透却不说透 2024-08-12 07:14:59

你没有说哪里出了问题,而且我手头没有 IE7,但对于初学者来说,你的网站无法验证,无论是 XHTML Strict(你指定的文档类型)还是 CSS。在做其他事情之前我会修复验证错误。

You don't say what's broken and I don't have IE7 handy, but for starters your site doesn't validate, either as XHTML Strict (your nominated doctype) or for the CSS. I would be fixing the validation errors before doing anything else.

绮烟 2024-08-12 07:14:59

你的菜单和页脚 li 需要

float: left;

你的中心部分在闪光灯的高度上有错误......

我想你需要仔细看看。

IE 现在附带了一个方便的开发人员工具,您可以在其中即时更改 css。

your menu en footer li needs

float: left;

your center piece bugs on the height of the flash....

i guess you need to take a closer look at that.

IE now comes with a handy developer tool in which you can change the css on the fly.

墨离汐 2024-08-12 07:14:59

给你的身体

background-color: #353535

改变包装的最小高度,例如

min-height: 650px

并将#main底部填充更改为例如

< code>padding-bottom: 20px

这应该可以解决您的问题!在我的浏览器中确实如此!

give your body

background-color: #353535

change the min-height of the wrap to for example

min-height: 650px

and change the #main bottom padding to for example

padding-bottom: 20px

this should solve your problem! it does in my browsers!

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