Scripsit Jenny:
I have one select which lists one visible element. I want this select
can show scrollbar after I click its down arrow, so that i can use the
scrollbar to select the element i want.
Why? Graphic browsers normally show a box where an item can be selected
without scrolling.
I test it on windows IE. The scrollbar will be shown when the select
has more than 30 elements, otherwise it won't show scrollbar. I don't
want the list to be that long. I hope that the scrollbar can be shown
when the number of elements is 8.
That's browser's user interface and beyond your control as an author.
Yet I don't see why you want to enforce a scrolling mechanism when none is
needed.
I don't know if there is a simple way to solve this problem.
There are simple ways to avoid creating the problem. Use a list of radio
buttons or a text input field, if you have a real data entry form. Use a
list of links, if the select element is just a surrogate for a menu of
links. A choice between these depends on the original problem, which was not
disclosed at all. What do you use the select element for, really?
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/