如何在ASP.NET中的dropdownlist控件中处理长文本? [英] how to handle long text in dropdownlist control in ASP.NET?

查看:55
本文介绍了如何在ASP.NET中的dropdownlist控件中处理长文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当下拉菜单面对如此宽的文本以至于无法扩展菜单的宽度时,我有哪些选项?即它打破了页面布局,或者只是看起来太难看了如果下拉调整到适合长项目。我给了宽度,它工作得很好谷歌铬,但不在互联网浏览器..



任何人都遇到过任何优雅的解决方案吗?

解决方案

我希望这个链接能为你的问题提供一些信息。



http://css-tricks.com/ select-cuts-off-options-in-ie-fix / [ ^ ]


使用工具提示。

为每个列表项添加工具提示 [ ^ ]

What kinds of options do I have when a dropdown menu is faced with text that is so wide that extending the menu's width to accommodate is not feasible? i.e. It breaks the page layout, or just looks too ugly if the dropdown is adjusted to fit the long item.IF i gave width,it's working fine google chrome but not in internet explorer..

Anyone encountered any elegant solutions to this?

解决方案

I hope this link would give some information for your question.

http://css-tricks.com/select-cuts-off-options-in-ie-fix/[^]


Use ToolTip.
Adding ToolTip for each List Item[^]


这篇关于如何在ASP.NET中的dropdownlist控件中处理长文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆