XP 中烦人的 IE8 下拉问题,但 Windows 7 中没有
我有一个令人烦恼的问题,选择 html 元素,当下拉列表中的文本长于选择 html 元素的设置宽度时,它会截断文本。
选择元素需要设置宽度以阻止页面错误,除了在 XP 上运行的 IE8 之外,每个浏览器似乎都可以工作。为什么?如此随机且兼容性差。
如果您需要更多信息,请告诉我。
谢谢!
I have an annoying issue with a select html element that cuts off the text in the dropdown when it is longer then the set width of the select html element.
The select elements need to be a set width to stop the page misalinging, Every browser seems to work except for IE8 running on XP. why? so random and bad compatibility.
please let me know if you need more infomation.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 IE 解释它应该呈现下拉菜单的方式...不幸的是,没有简单的解决办法,您可以做的是创建一个下拉菜单的替代品,以不同的方式处理这个问题,可以在浏览器中一致地工作...
这里是我想出的解决方案
http://weblogs.asp.net/jaimedelpalacio/archive/2008/11/22/custom-html-dropdown-control-part-1.aspx
It's a how IE interprets it should render the drop downs ... Unfortunately,there's no easy fix, what you can do is create a replacement for drop downs that handles this in a different way, that can work consistently across browsers ...
Here's a solution I came up with
http://weblogs.asp.net/jaimedelpalacio/archive/2008/11/22/custom-html-dropdown-control-part-1.aspx
我不确定操作系统之间的差异,但只需使用条件注释来设置 IE 中选择的样式。样式也是如此。
i'm not sure of the differences between OS, but just use conditional comments to style the select in IE. style the as well.