Internet Explorer 问题
该网站的中心内容部分存在问题。由于某种原因,在 Internet Explorer 中只有几个字母被侧边栏截断。我不知道为什么,或者如何解决它。 div 向右浮动,因此我认为在右侧添加几个像素的边距就可以解决问题。事实并非如此……
在 IE8 上就是这样,我实际上是在 Mac 上通过并行运行 IE 7.4。
有什么建议吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在
ie.css
中,您有:仅在 IE 中剪切文本。因此,如果删除此规则,文本将不再被剪切。不过,该规则的存在可能是有原因的,因此您可能需要在删除它之前测试整个网站。
编辑:我还会修复验证错误以及我过去在不同浏览器上遇到过无法解释的渲染问题,这些问题是由无效引起的标记。
编辑 2:
#content
父具有定义的宽度(并且是
overflow:hidden
)但是子也具有定义的宽度,并且其位置使其大于父级的右边缘,因此会被父级的溢出规则剪切。因此,作为替代方案,您可以使
.rightbox
更窄,以避免 IE 中的溢出隐藏。In an
ie.css
you have: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 isoverflow: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.我不知道为什么会发生这种情况,但在适用的任何地方添加
padding-left: 3px
可以修复它。I don't know why that happens, but adding a
padding-left: 3px
anywhere that applies to it fixes it.