1

jqTransform プラグインを使用して、ページのフォーム項目にスタイルを追加しています。タブに 3 つのフォームが配置されており、2 番目と 3 番目のタブの選択ボックスが正しく機能していません。

何らかの理由で、スクリプトがこれらの選択ボックス リストに「高さ: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'});

なぜこれが起こっているのか本当にわかりません。

4

1 に答える 1

-1

行をコメントアウトします

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

わたしにはできる。

于 2012-11-04T12:52:11.487 に答える