XP 中烦人的 IE8 下拉问题,但 Windows 7 中没有

发布于 2024-10-08 15:47:59 字数 174 浏览 0 评论 0原文

我有一个令人烦恼的问题,选择 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

等数载,海棠开 2024-10-15 15:47:59

这是 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

末骤雨初歇 2024-10-15 15:47:59

我不确定操作系统之间的差异,但只需使用条件注释来设置 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文