【问题标题】:scrolltofixed bottom with angular ng-repeat带有角度 ng-repeat 的滚动到固定底部
【发布时间】:2016-11-06 09:12:01
【问题描述】:

我正在使用angular-scrolltofixed 插件 而且效果很好。

当我尝试为底栏设置限制选项时,问题就开始了

 $('.footer').scrollToFixed( { bottom: 0, limit: $('.footer').offset().top } );

在所有页面完全呈现(ng-repeat 等)之前计算“限制”变量,因此限制属性不正确。

【问题讨论】:

    标签: javascript angularjs plugins


    【解决方案1】:

    试试这个,脚本在整个文档加载后加载

    <html>
        <head> </head>
        <body>
         <!--
             write  all the code her
         -->
            <script>
             //Add your angualar js script here 
            </script>
        </body>
    
    </html>
    

    【讨论】:

      猜你喜欢
      • 2015-02-26
      • 1970-01-01
      • 1970-01-01
      • 2015-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-24
      相关资源
      最近更新 更多