Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set the height of the select tag under ie6 or ie7

Shulou Source: shulou.com Published: 2022-06-03 14:00:02 11月14日 Update

How to set the height of the select tag under ie6 or ie7, I believe many inexperienced people are at a loss about this. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

With regard to the details of the layout, the form is really troublesome. There are always some differences in the rendering of browsers. Enough gossip. Here are some tips on the height of select tags.

The following is a diagram that each browser supports for setting the height attribute of the select tag:

The picture is the material found on the Internet, but after testing the IE7 myself, it seems that it does not support a high setting.

There are also some posts on the Internet that use tags to simulate a select tag, or js and the like. I have no actual operation, but accidentally found that the select in jquery ui can set the height.

It's actually very simple-just set the font-family attribute of the select tag, as follows:

-select {font-family: Trebuchet MS}

OK, it's that simple!

After reading the above, do you know how to set the height of the select tag under ie6 or ie7? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Tags height content that is properties methods more browsers problems support browsing accidents helplessness for this reason pictures actual differences layout Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information NVidia Shulou Tech Info Shulou Technology