Wrap long-text in drop-down list?

前端 未结 7 1186
轻奢々
轻奢々 2021-01-19 15:19

I have legibly long text in a drop-down list on my asp.net page. it violates the UI boundary and goes beyond the allocated region of UI.

Is there anyway I can wrap [

7条回答
  •  长发绾君心
    2021-01-19 15:48

    I've been responding to old questions like this. It's a common problem that hasn't really been addressed even since 2009 :). I wrote this a while back that you may find helpful: http://dpatrickcaldwell.blogspot.com/2011/06/giantdropdown-jquery-plugin-for-styling.html

    It's a jquery plugin to make a styleable unordered list backed by the hidden select element.

    The source is on github: https://github.com/tncbbthositg/GiantDropdown

    You'd be able to handle behaviors and styles on the UL that you can't with the SELECT. Everything else should be the same because the select list is still there, it's just hidden but the UL will use it as a backing data store (if you will).

提交回复
热议问题