-1

これは私のページです。

サードパーティによって開発されたもので、CMS にプラグインしました。なんらかの方法でページを更新しようとすると、URL を変更するような単純なものであっても、プラス記号をクリックするとモーダルのリスト項目が表示されなくなります。

各モーダル ウィンドウには、(現在は空の) オレンジ色のバーの上に小さなアイコンが表示され、アイコンの上にカーソルを合わせると、その下のコンテンツが変化します。これは次のようになり、コードは次のようになります。

            <ul class="size_banner">                                
            <li><a class="size_1 selected" title=""></a></li> 
            <li><a class="size_2" title=""></a></li> 
            <li><a class="size_3" title=""></a></li>
            <li><a class="size_4" title=""></a></li>
            <li><a class="size_5" title=""></a></li>
            <li><a class="size_6" title=""></a></li>
            <li><a class="size_7" title=""></a></li>
            <li><a class="size_8" title=""></a></li>
            </ul>

ある時点で、CMS で直接ページを編集するのではなく、テキスト エディターでページを編集してから新しいコードをコピーすると、うまくいくことがわかりました。しかし、またもやうまくいかない!Firebug コンソールまたは Chrome にエラーはありません。jQuery を fiddle に入れましたが、モーダルをトリガーしようとするとエラーが発生します。

これは、別のサーバー上のページの作業バージョンです

明日の午前までにページを修正しなければならないので、壊れたページは今日だけ公開されます。

4

2 に答える 2

0

Ok after comparing the working version with the non-working version the result is that the CMS has altered the actual html that is being rendered..

It has nothing to do with the scripts..

See http://www.diffnow.com/?report=vknwc

On the left is the non-working code and on the right the working code (for just the first size).

You will notice that on the working version (the right) each li element has an empty a tag inside it with some attributes.

Your CMS obviously considers those elements as useless because they are empty and removes them.

You will need to re-add them (and perhaps give them a &nbsp inside so they are not treated as empty)

于 2013-04-23T13:42:56.813 に答える
0

私の仮定、

<ul class="size_banner">
  <li> </li>
  <li> </li>
  <li> </li>
  <li> </li>
  <li> </li>
  <li> </li>
  <li> </li>
  <li> </li>
</ul>

私の知る限り、これらの 「li」タグは、モーダル内に表示される小さな画像を想定しているため、画像のソースが適切に構成されているかどうかにかかわらず、jquery のモーダル プラグイン コードを確認できます。

ハッピーコーディング:)

于 2013-04-23T13:24:25.117 に答える