1

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/

4

2 回答 2

1

在一个ie.css你有:

#content, .sidebar { overflow: hidden; }

仅在 IE 中剪切文本。因此,如果您删除此规则,文本将不再被剪裁。但是,此规则可能出于某种原因退出,因此您可能希望在删除它之前测试整个站点。

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

编辑2:父母#content<div>一个定义的宽度(并且是overflow:hidden),但一个孩子<div>也有一个定义的宽度,它的位置使它大于父母的右边缘,因此被父母的溢出规则剪裁。因此,作为替代方案,您可以.rightbox缩小范围以避免溢出隐藏在 IE 中。

.custom #content .box-wrapper .rightbox {
    float: right;
    width: 451px; /* <-- change this */
    margin-right:5px;
}
于 2011-05-10T22:46:24.093 回答
0

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

于 2011-05-10T19:16:25.163 回答