[英]How do i render html/css same in firefox and IE
i am making a menu for my school assignment and it needs to work in both IE and firefox. 我正在为我的学校作业制作菜单,它需要在IE和Firefox中工作。 I am done the menu and it works perfectly in firefox, but i am having trouble getting it to display properly in IE
我完成了菜单,它在firefox中完美运行,但我无法在IE中正确显示它
A part can be found over here: http://tutudragon3.info/ie-trying.php 可以在这里找到一个部分: http : //tutudragon3.info/ie-trying.php
When i click the home image in firefox, a dropdown sort of thing pops-up with 2 images with text "d" and "d". 当我点击Firefox中的主页图像时,会弹出一个下拉类型的东西,其中包含2个带有文本“d”和“d”的图像。 In firefox, there is no space between those dropdown images, but when i try it in IE, I see a small blank space between them.
在Firefox中,这些下拉图像之间没有空格,但是当我在IE中尝试它时,我看到它们之间有一个小空格。
how could i fix this (delete that space) please. 我怎么能解决这个问题(删除那个空格)。 I tried many different things but it didn't work.
我尝试了很多不同的东西,但它没有用。
Using IE8 by the way. 顺便使用IE8。
Before worrying about any specific bugs: 在担心任何特定错误之前:
如果你已经完成了David提到的事情,并且仍然看到了一些差异,你可能想看看ie7.js ,它是一个JavaScript库,使Microsoft Internet Explorer的行为类似于符合标准的浏览器。
I don't find any problem in IE7. 我在IE7中没有发现任何问题。 But if you are having the problem, try giving
display:block;
但如果您遇到问题,请尝试使用
display:block;
to the <A>
and <IMG>
tags. 到
<A>
和<IMG>
标签。 The problem should vanish. 问题应该消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.