IE 9到IE11的下拉兼容性问题 [英] Dropdown compatibility issues for IE 9 to IE11

查看:305
本文介绍了IE 9到IE11的下拉兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的Asp.net 4.o网络应用程序从IE9浏览器兼容到IE11。根据程序逻辑,我有一些项目只显示在下拉列表中。我正在使用< asp:DropDownList ID =DropDownList1runat =server>



但是,我面临一些兼容性问题。如果列表中只有一个元素,则在IE11中单击下拉图像时,下拉列表显示为已敲击。但是,当我在IE9浏览器中执行相同操作时,列表中的一个项目也会下降。如果列表包含多个元素,则两个浏览器都显示相同的内容。



图片附在以下链接中:

http://answers.microsoft.com / en-us / ie / forum / ie11-windows_7 / dropdown-compatibility-issues-for-ie-9-to-ie11 / 9547b2ad-610e-43f1-8d72-33fa5e9ba341?tm = 1434729122366 [ ^ ]



请让我知道,如何在两者中实现相同的功能浏览器,无需强制IE11浏览器在兼容模式下运行。我可以通过使用CSS来实现这一点吗?

I am making compatible my Asp.net 4.o web application from IE9 browser to IE11. some times as per program logic I have only one item to display in the dropdown list. I am using <asp:DropDownList ID="DropDownList1" runat="server">

But, I am facing some compatibility issues. The drop down is appearing as struck when clicked on a dropdown image in IE11 if the list has only one element. But when I do the same in IE9 browser the list is coming down for one item also. If the list has more than one element, both the browsers are displaying same.

Images are attached in the link given Below:
http://answers.microsoft.com/en-us/ie/forum/ie11-windows_7/dropdown-compatibility-issues-for-ie-9-to-ie11/9547b2ad-610e-43f1-8d72-33fa5e9ba341?tm=1434729122366[^]

Please let me know, how to achieve same functionality in both browsers, without forcing the IE11 browser to run in compatibility mode. Can I achieve this by using CSS ?

推荐答案

忘记了。在新浏览器上模仿旧行为是没有意义的。其他浏览器如Edge,Safari,Firefox,Chrome如何运作?



我不认为这些细节是定义的,如果是这样,那么新的行为肯定是正确的。



顺便说一句,旧的IE方式是一个糟糕的设计。如果列表中包含单个项目,为什么还要让用户下拉列表?



可能旧的行为是使用Windows的旧浏览器的限制标准控件具有所有限制,尤其是缩放和样式。



随着Windows 10即将发布,我不应该投入太多时间来尝试修复细微差别最终几乎没有任何价值。可能99%的人永远不会注意到这些细节,而剩下的1%,另外99%的人不关心是否有下拉的样子。



为什么有人花费数小时来解决这类问题,或者最糟糕的是使用兼容模式来处理这些小事。
Forget that. It make no sense to mimic old behavior on new browser. How other browser like Edge, Safari, Firefox, Chrome works?

I don't thing that those details are defined and if so, then the new behavior would surely be the right one.

By the way, the old IE way is a bad design. Why would you let user drop down a list if the list has a single item in it?

Probably that the old behavior is a limitation of older browser that was using Windows standard controls with all their limitations in particular for scaling and styling.

With Windows 10 about to be released, I thing one should not invest much time trying to fix minor difference that have almost no value in the end. Probably that 99% of people would never notice such details and from the remaining 1%, another 99% of those don't care if the drop down has either look.

Why someone would spend hours to fix things like that or worst use compatibility mode for such minor things.


这篇关于IE 9到IE11的下拉兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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