asp菜单在firefox中显示良好,但在Internet浏览器中却没有 [英] The asp menues displayed well in firefox , but in internet exploer it desn't

查看:136
本文介绍了asp菜单在firefox中显示良好,但在Internet浏览器中却没有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp菜单在firefox中显示良好,但在Internet Explorer中却没有.我在这里给出链接:

http://n.fbr.gov.pk/defaultBK.aspx [

The asp menus displayed well in firefox , but in internet explorer it doesn''t. I am giving the link here:

http://n.fbr.gov.pk/defaultBK.aspx[^]

error:
you can see , that in main menu extra shed is being showed whhttp://www.codeproject.com/Questions/ask.aspxile in rest menu it doesn''t.

推荐答案

您应该使用CSS标记此问题,因为这是样式问题.

我可以重现您描述的行为(Firefox和IE9),并查看您的CSS和htm文件.

我注意到的一件事是您有很多嵌套的表和div.这使您的代码非常复杂,并且您有许多影响事物显示方式的元素.

Firefox和Internet Explorer在样式设置上有不同的解释.这说明了区别.

您可以通过在.Master1_MnuLef_4和.Master1_Menu4_4的样式部分中删除htm文件来修复"菜单:

右上移:40px;

但这会给三角形带来另一个问题.

我无法为您解决此问题,但我的建议是:尝试简化您的代码并删除表中的所有嵌套表和div.

实际上,您应该仅使用表来以表格式显示数据.将div和(未排序的)列表用于菜单.
You should tag this question with CSS, since this is a style problem.

I can reproduce the behavior you described (Firefox and IE9) and looked in you css and htm file.

One thing I notice is that you have lots of nested tables and divs. This makes your code very complex and you have lots of elements that influence the way things are diplayed.

Firefox and Internet Explorer have a different interpretation on style settings. This explains the difference.

You can ''fix'' the menu by removing in you htm file in the style section in .Master1_MnuLef_4 and .Master1_Menu4_4:

PADDING-RIGHT: 40px;

But this creates another problem with the triangles.

I cannot solve this for you, but my advice: try to simplify your code and remove all nested tables and divs in tables.

In fact you should use tables only for presenting data in table format. Use divs and (unsorted) lists for menu''s.


这篇关于asp菜单在firefox中显示良好,但在Internet浏览器中却没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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