我正在构建自定义选择框,我注意到原生Select可以超出浏览器的高度,是否可以使用自定义选择/元素执行此操作?
<!DOCTYPE html>
<html>
<body>
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option> <option value="audi">Audi</option>
</select>
</body>
</html>