Limit Initial width of select list

前端 未结 6 1209
春和景丽
春和景丽 2021-01-12 20:17

I have a select list, where some clients have entered insanely long options for them, which breaks the design. I\'m wondering if there is a way to set a fixed width on the s

6条回答
  •  死守一世寂寞
    2021-01-12 20:37

    Not sure if you're open to using jQuery at all but I usually use this method:

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

    Is a bit choppy but looks better than cutting off the content

提交回复
热议问题