Home > Web Front-end > HTML Tutorial > Experts please come in, waiting online. Urgent...._html/css_WEB-ITnose

Experts please come in, waiting online. Urgent...._html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:21:56
Original
1017 people have browsed it

http://www.veryhuo.com/a/demo/2011/jquery-css-select.html
This special effect. If there are many items in the drop-down box, how can I make a scroll bar appear on the right side? For example: only 6 will be displayed. A scroll bar appears


Reply to the discussion (solution)

Control the height of the p tag of the drop-down box

and then allow it to scroll!

Can you be more specific?

Can you change it?

Control the height of selectBox DIV.





Writing the a tag just lets you locate which P tag. height Modify according to your actual situation

Control the height and exceed scrolling

Add Set overflow:auto; and set a height or something.

Dishes? Very nice. Accepted.

It’s very nice. I accepted it.

Can you give me a specific one?

div
div {overflow-x:hidden;overflow-y:auto;height :100px;}

Dear brothers, can any kind person please change the code and paste it here! Thanks!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template