简体   繁体   English

如何使SumoSelect下拉菜单更宽

[英]How to make sumoselect dropdown wider

This is what my dropdown for sumoselect looks like: 这是我的sumoselect下拉菜单如下所示:

在此处输入图片说明

I would like the dropdown to be wider but I haven't been able to figure out how to affect it. 我希望下拉列表更广泛,但我一直无法弄清楚如何影响它。 Anyone know what css to override or how to do it? 任何人都知道要覆盖的CSS或方法吗?

For reference: https://github.com/HemantNegi/jquery.sumoselect 供参考: https : //github.com/HemantNegi/jquery.sumoselect

Tried editing the CSS in the inspector; 尝试在检查器中编辑CSS; no luck. 没运气。

在此处输入图片说明

Got it to work by changing the width in the sumoselect.css 通过更改sumoselect.css中的宽度使它起作用

FROM: 从:

.SumoSelect{width: 200px;} .SumoSelect {width:200px;}

TO: 至:

.SumoSelect{width: inherit;} Then wrapped each instance with the desired width (if necessary): .SumoSelect {width:Inherited;}然后以所需的宽度包装每个实例(如有必要):

. . .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM