Home >
Web Front-end >
HTML Tutorial >
The problem with the length of HTML SELECT (not the content length of the option) is that there are too many option nodes displayed in SELECT. I want to control its length_html/css_WEB-ITnose
The problem with the length of HTML SELECT (not the content length of the option) is that there are too many option nodes displayed in SELECT. I want to control its length_html/css_WEB-ITnose
WBOY
Release: 2016-06-24 12:13:30
Original
2118 people have browsed it
SELECT displays many option nodes and I want to control their length. For example, there are 50 option nodes and I only want it to display 20. Others are displayed with scroll bars
Enter the above and display the first 20 individual items. Use the scroll bar to scroll and display. Now the display directly fills the screen. Experts, please help
Reply to the discussion (solution)
Can you display a well-formatted DIV for selection?
But the program JS AJAX If I don’t use this SELECT HTML control, I have to write everything. Is there any way to do it?
If so! It is recommended that you use controls!
Does the control have this function?
It can be implemented using div
Yes, it can be implemented using a simulated list box made with DIV. However, my drop-down box has already used AJAX to transfer values, and it is also used in form submission, so It's difficult to replace the control. I don't know if there is a solution.
Just use it Layer simulation, there are many problems with Select, it will be annoying in the future
Consider trying to set different size values, such as:
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