Internet Explorer 问题

发布于 2024-11-06 10:14:45 字数 295 浏览 2 评论 0原文

该网站的中心内容部分存在问题。由于某种原因,在 Internet Explorer 中只有几个字母被侧边栏截断。我不知道为什么,或者如何解决它。 div 向右浮动,因此我认为在右侧添加几个像素的边距就可以解决问题。事实并非如此……

在 IE8 上就是这样,我实际上是在 Mac 上通过并行运行 IE 7.4。

有什么建议吗?

http://www.thesurgicalsolution.com/

This site has an issue with the center content portion. For some reason in internet explorer just a couple of letters are being cut off by the sidebar. I have no idea why, or how to fix it. The div floats right, so I figured adding a few pixels of margin to the right would do the trick. It doesn't...

It's this way on IE8 and I'm actually running IE 7.4 through parallels on a Mac.

Any suggestions?

http://www.thesurgicalsolution.com/

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

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

发布评论

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

评论(2

你的笑 2024-11-13 10:14:45

ie.css 中,您有:

#content, .sidebar { overflow: hidden; }

仅在 IE 中剪切文本。因此,如果删除此规则,文本将不再被剪切。不过,该规则的存在可能是有原因的,因此您可能需要在删除它之前测试整个网站。

编辑:我还会修复验证错误以及我过去在不同浏览器上遇到过无法解释的渲染问题,这些问题是由无效引起的标记。

编辑 2: #content

具有定义的宽度(并且是 overflow:hidden)但是子

也具有定义的宽度,并且其位置使其大于父级的右边缘,因此会被父级的溢出规则剪切。因此,作为替代方案,您可以使 .rightbox 更窄,以避免 IE 中的溢出隐藏。
.custom #content .box-wrapper .rightbox {
    float: right;
    width: 451px; /* <-- change this */
    margin-right:5px;
}

In an ie.css you have:

#content, .sidebar { overflow: hidden; }

which is clipping the text in IE only. So if you remove this rule the text will no longer be clipped. It is possible that this rule exits for a reason though, so you might want to test the whole site before just deleting it.

Edit: I would also fix the validation errors as well as I have had unexplained rendering issues on different browsers in the past which were caused by invalid markup.

Edit 2: The #content parent <div> has a defined width (and is overflow:hidden) but a child <div> also has a defined width and its position makes it greater than the right edge of the parent and is therefore clipped by the parent's overflow rule. So as an alternative, you could make the .rightbox narrower to avoid the overflow hiding in IE.

.custom #content .box-wrapper .rightbox {
    float: right;
    width: 451px; /* <-- change this */
    margin-right:5px;
}
飘然心甜 2024-11-13 10:14:45

我不知道为什么会发生这种情况,但在适用的任何地方添加 padding-left: 3px 可以修复它。

I don't know why that happens, but adding a padding-left: 3px anywhere that applies to it fixes it.

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