在Firefox中我的div上方和下方的空间,但不在IE中 [英] Space above and below my div in firefox but not in IE

查看:65
本文介绍了在Firefox中我的div上方和下方的空间,但不在IE中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的div上方和下方的间距问题位于相对位置。在FireFox空间中添加了我的div上方和下方,而页面在PC上的IE中正确显示。如果您在FireFox中查看我的页面,您会看到右侧列的特色产品下方有空格。标题和位于其下方的文本块左侧的行。随后标题为最新消息的div发生同样的问题。希望有人可以给我一些指导。这是我的页面和样式表:


我的页面:www.embeddedinsight.com/lightwire/kat


我的样式表:www。 embeddedinsight.com/lightwire/kat/css/lightwire_styles.css


感谢您的帮助。


Katrina

I am having a spacing problem above and below my divs that are positioned "relative". In FireFox space is added above and below my div whereas the page displays correctly in IE on the PC. If you view my page in FireFox, you will see that the right column has spaces below the "Featured Products" heading and the line to the left of the text block that sits below it. The same problem is occurring with the div that follows with the heading "Latest News". Hopefully someone can give me some guidance. Here is my page and style sheet:

My page: www.embeddedinsight.com/lightwire/kat

My style sheet: www.embeddedinsight.com/lightwire/kat/css/lightwire_styles.css

Thank you for your help.

Katrina

推荐答案

您有7个HTML错误和13个CSS错误,其中一些与右列直接相关。 ID是唯一的名称,每页只允许使用一次。


永远不要使用IE作为参考资料。 IE比Web标准落后9年或者其实施不正确。始终先在Firefox,Opera或Safari中测试;然后调整IE的怪癖和错误。
You have 7 HTML errors and 13 CSS errors, some directly related to the right column. IDs are unique names that are only allowed once per page.

Never use IE as a reference for something that is working. IE is nine years behind web standards or incorrect in its implementation. Always test in Firefox, Opera or Safari first; then adjust for IEs quirks and bugs.


感谢您的帮助。我已经验证了我的css页面。我的html页面由于中心标记而有一个错误,我需要保留,因为我在样式表中定义的中心属性实际上并不是文本的中心。


我的问题仍然存在..位于相对位置的右列div之上和之下的空间。


Katrina
Thanks for your help. I have validated my css page. My html page has one error due to a center tag, that I need to keep because the center attribute I defined in my style sheet doesn''t actually center the text.

My problem remains.. Space above and below my right column divs that are positioned relative.

Katrina

我已经整天走了这么晚才回到这里。只是快速浏览但IE可能正在扩展您的包装器div以包含绝对定位的元素。这是IE中的一个错误,不应该发生。 Firefox正常运行。修复我现在没有时间;也许今晚晚些时候。
I''ve been gone all day so late getting back to this. Just a quick look but IE may be expanding your wrapper div to contain the absolutely positioned elements. This is a bug in IE and should not happen. Firefox is performing correctly. The fix I don''t have time for right now; maybe later tonight.


这篇关于在Firefox中我的div上方和下方的空间,但不在IE中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆