【发布时间】:2017-03-24 19:26:58
【问题描述】:
我在 aspx 页面中有一个下拉列表,我通过 db 绑定,我没有为下拉列表控件提供任何固定高度,如下所示
发生在分辨率为 1680*1050 的显示器上。适用于 1366*768 的分辨率。在网上搜索了很多,但没有解决方案。请帮忙!
这是这个下拉列表的标记:
<asp:DropDownList ID="ddlLossTypeTime" runat="server" AutoPostBack="true"
Width="75%" style="height: auto !important;
overflow: visible !important;overflow-y:auto"></asp:DropDownList>
【问题讨论】:
-
这是我的下拉列表标签
-
尝试通过 css 设置行高,例如
select { line-height: 110% }或内联<asp:DropDownList style="line-height:110%" .../> -
感谢 relply nino,但我已经尝试过应用 line-height、max-height、overflow 等