为不同的JQuery Chosen设置不同的max-height

时间:2015-07-21 11:00:13

标签: jquery css

我希望不同的选择有不同的最大高度。 我在html页面上使用javascript创建了许多选项。 创建选择后我做

currMaxHeight = "127px"; //changes per Chosen
$(select).chosen().css({"max-height":currMaxHeight});  

一切正常,但忽略了最大高度。 有什么问题?

0 个答案:

没有答案