【问题标题】:content in options in asp.net dropdown list getting cut/overlappingasp.net 下拉列表中选项中的内容被剪切/重叠
【发布时间】:2017-03-24 19:26:58
【问题描述】:

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 绑定,我没有为下拉列表控件提供任何固定高度,如下所示

发生在分辨率为 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% } 或内联 &lt;asp:DropDownList style="line-height:110%" .../&gt;
  • 感谢 relply nino,但我已经尝试过应用 line-height、max-height、overflow 等

标签: c# html css asp.net


【解决方案1】:
overflow: visible

overflow: autooverflow: hidden

【讨论】:

  • 都试过了,overflow:visible 和 overflow:auto,但是没用。
猜你喜欢
  • 2019-07-05
  • 1970-01-01
  • 2020-11-19
  • 2014-02-27
  • 2013-11-12
  • 1970-01-01
  • 2018-07-04
  • 1970-01-01
  • 2014-04-02
相关资源
最近更新 更多