如何限制选择元素下拉列表的高度 – 这样如果选项的总量大于此高度 – 我应该在下拉列表中滚动.
如果我可以根据像素或项目数量这样做,我会感到满意.
如果我可以根据像素或项目数量这样做,我会感到满意.
所以说我有以下html标记:
<select> <option selected>Select</option> <option>This is an option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> <option>This is another Option</option> </select>
This是我到目前为止,它不起作用.