[英]How can I make an option in a SELECT multi line upon clicking on it?
I have a drop down with items in it that overflow horizontally but I want to make an option multi-line when I click it so that I can see it all. 我有一个下拉菜单,其中的项目水平溢出,但是我想在单击该选项时将其设置为多行,以便可以看到所有内容。
I can try a tool tip but I know the tool tip doesn't last long. 我可以尝试使用工具提示,但是我知道工具提示不会持续很长时间。
How can I implement this multiline idea or something similar that would work without having to introduce jquery ui and all that? 我如何实现这种多行想法或类似的工作而不必引入jquery ui和所有这些?
Theoretically this should do it 理论上应该这样做
$('#identifier').focus(function(){
$(this).attr('multiple','multiple');
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.