asp.net下拉列表中的选项中的内容被剪切/重叠

时间:2017-03-24 09:18:32

标签: c# html css asp.net

as you can see in the image attached, the text in the dropdown list gets cut/ is overlapping due to which complete text is not visible

我在aspx页面中有一个下拉列表,我通过db绑定,并且我没有给dropdownlist控件提供任何固定高度,如下所示

在分辨率为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>

1 个答案:

答案 0 :(得分:0)

overflow: visible

overflow: autooverflow: hidden