我选择了一个盒子里的下拉菜单。盒子有固定的高度和宽度。每当我从下拉列表中选择一个值时,该框就会显示滚动条。我想在框上方显示下拉框的选项。我该怎么办?
检查我的代码HTML
<div id="wrapper">
<select id="sel" style="width: 100px;">
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
<option value="1">Val-1</option>
</select>
</div>
CSS
#wrapper {
width: 300px;
height: 100px;
overflow: scroll;
border: 1px solid #000;
}