Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report