在Internet Explorer中的DropDownList造型 [英] dropdownlist styling in Internet explorer

查看:187
本文介绍了在Internet Explorer中的DropDownList造型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些问题与IE浏览器渲染我的DropDownList的方式。
在Firefox它看起来它应该和那我想显示在IE浏览器太的方式。
下面是DropDownList的Firefox中的截图:

I have some problems with the way IE renders my DropDownList. In Firefox it looks as it should and thats the way I wanted displayed in IE too. Here is a screenshot of the dropdownlist in Firefox:

截图在IE中:

我想下拉,扩大垂直向上,直到那里的DropDownList的是,我不想下拉走现有的下拉控制之下。
有一些窍门如何做到这一点与CSS?
由于提前,Laziale

I want the dropdown to expand vertically up until where the dropdownlist is, I don't want the dropdown to go below the existing dropdown control. Is there some trick how to do that with css? Thanks in advance, Laziale

推荐答案

这只是一个下拉菜单在Internet Explorer中10只及以上(以及在Windows应用商店中的应用程序)的方式:菜单开启时,所选项目覆盖的下拉控制,这是其他项目出现的上方和下方。 presumably,微软这样的菜单更友好的触摸做出这种变化。

This is just the way that drop-down menus work in Internet Explorer 10 and up (as well as in Windows Store apps): when the menu opens, the selected item overlays the drop-down control, which other items appearing above and below it. Presumably, Microsoft made this change so that the menu is more touch friendly.

我通过由Internet Explorer 支持的CSS属性的列表,但我没有发现任何影响菜单的位置。所以,如果这种行为是不可接受的,你需要避开赞成基于CSS的HTML /下拉菜单中的本机操作系统的控制,如的 jQuery的Selectme​​nu 或Telerik的的 RadDropDownList

I browsed through the list of CSS properties supported by Internet Explorer, but I didn't notice any that affect the position of the menu. So if this behavior is unacceptable, you will need to eschew the native operating system control in favor of an HTML/CSS-based drop-down menu, such as jQuery Selectmenu or Telerik's RadDropDownList.

这篇关于在Internet Explorer中的DropDownList造型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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