使用jqTransform插件的Bug

时间:2011-11-11 11:14:19

标签: javascript jquery forms tabs jqtransform

我正在使用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'});

我真的不明白为什么会这样。

1 个答案:

答案 0 :(得分:-1)

注释掉

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

它对我有用。

相关问题