gpt4 book ai didi

javascript - 使用 jqTransform 插件的错误

转载 作者:行者123 更新时间:2023-11-28 10:59:39 25 4
gpt4 key购买 nike

我正在使用 jqTransform 插件在页面的表单项中添加一些样式。选项卡中放置了三个表单,第二个和第三个选项卡中的选择框无法正常工作。

由于某种原因,脚本似乎将“height:0”应用于这些选择框列表。这是处理此操作的代码:

// Calculate the height if necessary, less elements that the default height
//show the ul to calculate the block, if ul is not displayed li height value is 0
$ul.css({display:'block',visibility:'hidden'});
var iSelectHeight = ($('li',$ul).length)*($('li:first',$ul).height());//+1 else bug ff
(iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'hidden'});//hidden else bug with ff
$ul.css({display:'none',visibility:'visible'});

我真的不明白为什么会发生这种情况。

最佳答案

注释掉该行

(iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'hidden'})

这对我有用。

关于javascript - 使用 jqTransform 插件的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8093165/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com