簡體   English   中英

on $(document).foundation(); 未捕獲的TypeError:無法讀取未定義的屬性“top”

[英]on $(document).foundation(); Uncaught TypeError: Cannot read property 'top' of undefined

我在這個頁面上使用了幾個基礎插件。 均衡器和顯示。 當調用基礎初始化程序時,它會拋出Uncaught TypeError: Cannot read property 'top' of undefined<script>$(document).foundation();</script>調用中Uncaught TypeError: Cannot read property 'top' of undefined

我假設它與被解析的標記關聯到其中一個插件有關。 這是標記......

均衡器...

   <div class="row" data-equalizer>
                <div class="overlay large-4 large-offset-4 columns clearfix">
                   ... text
                </div>
                <div class="large-4 columns clearfix">
                ... text
                </div>
   </div>

揭示...

<a id="terms" href="terms.php" data-reveal-id="termsModal" target="_blank" data-reveal-ajax="terms.php">Terms &amp; Conditions</a></label>

經過多次故障排除后,我意識到均衡器插件缺少一些標記。

我需要在子節點上添加data-equalizer-watch屬性。

<div class="row" data-equalizer>
   <div class="large-6 columns panel" data-equalizer-watch>
    ....

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM