【问题标题】:Bug using jqTransform plugin使用 jqTransform 插件的错误
【发布时间】:2011-11-11 11:14:19
【问题描述】:

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

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

【问题讨论】:

    标签: javascript jquery forms tabs jqtransform


    【解决方案1】:

    注释掉一行

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

    它对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-25
      • 2015-11-22
      • 1970-01-01
      相关资源
      最近更新 更多