How to select drop-down box to adjust the height (height and pull-down font options scroll bar height) see the figure below

Select drop-down box height adjustment has two meanings:

1. Adjust the "Select" text box height

2. Adjust the height of the drop-down box, scroll effect

The first layer of meaning: to adjust the "Select" text box height

code show as below:

    <select style="font-size:20px">
        <option selected>--请选择--</option>
        <option>中国</option>
        <option>美国</option>
    </select>

Results are as follows:

The second meaning: adjusting the height of the drop-down box, scroll effect

code show as below:

 

Results are as follows:

 

 

May refer to: http: //blog.sina.com.cn/s/blog_4850a3c20101dpun.html explain in more detail.

Guess you like

Origin www.cnblogs.com/yadongliang/p/5918397.html