Home >Web Front-end >HTML Tutorial >The width of the option drop-down list in html select cannot be automatically adapted to the width in IE8. How to solve it simply? _html/css_WEB-ITnose

The width of the option drop-down list in html select cannot be automatically adapted to the width in IE8. How to solve it simply? _html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:18:331446browse

The width of the option drop-down list in html select cannot be automatically adapted to the width in IE8. How to solve it simply?

For example:
3a488f93cd1b372281a6e3e4d45853c0
aeddec7daeb9799998697891529335baOver 200px, over 200px, over 200px, more than 200px More than 200px More than 200px More than 200px More than 200px, more than 200px That’s it.


It’s not possible without setting it. The length is 200px. But the content is a bit too long.

There is no problem with IE6, 7, and 9 FF, but there is a problem with IE8.

  <select style="width:auto">
How to solve it? Solve it??

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn