anchor-scroll

    0热度

    1回答

    当我使用 $location.hash('idWhereAnchorShouldBePlaced'); $ionicScrollDelegate.anchorScroll(); 在我的控制器将在我的网页中的特定点 ;我的页面顶部滚动卡住,底部滚动很长。 如果有任何修复请发帖。

    -1热度

    3回答

    我仍然在学习如何使用jQuery,并且我有这个脚本可以顺利滚动到页面上的锚点。我希望它在开始滚动之前等待一秒,因为我有一个需要关闭的菜单。我假设我需要使用setTimeout()函数,但无法弄清楚如何在下面的代码中正确实现它。 <script> $(document).ready(function(){ \t $('a[href^="#"]').on('click',fu

    0热度

    1回答

    我正在使用平滑滚动片段。我有一个固定的标题,并希望锚节停在我的标题下。我如何编辑这段代码让它们停止在页面顶部以下大约100像素? $(document).ready(function(){ $('a[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace

    1热度

    1回答

    我尝试在index.page上结合angularjs和fullpage.js。另外,还有一些页面只是通过路由正常渲染。 这是我在app.js路线 app.config(['$routeProvider', '$httpProvider', '$locationProvider', function($routeProvider, $httpProvider, $locationProvider)

    6热度

    2回答

    我在我的离子应用程序中使用$ anchorscroll,在Android上它工作正常,但在iOS上我的内容在滚动后卡住,我无法再向上滚动。 我尝试使用溢出滚动=“真”,但是这并不在我的应用程序工作,要么... 有人可以帮我这一个吗? function scrollTo() { console.log("scroll to: " + $stateParams.id); var a

    1热度

    2回答

    只需点击一个按钮,我想让页面滚动某个格bottom。 的第一时间我点击,页面将会非常顶部和初始URL http://localhost:8000成为http://localhost:8000/#/bottom(为什么它不会去div我提到)。 的第二次我按一下按钮,则网址 http://localhost:8000/#/bottom#bottom和它去到div bottom(这正是我想要)。 我该如

    1热度

    1回答

    页 顶部我有下面的代码 $scope.scrollTo = function(id) { alog($location.hash()); var toScrollId = "anchor" + id; if($location.hash() !== toScrollId){ alog(" hash is not equal") $locatio

    0热度

    1回答

    当使用$ anchorScroll滚动到元素时,我有一些问题,你能帮助我吗? 这是我的源: ParentController: var myApp = angular.module('myApp'); myApp.controller('ParentCtrl',function($scope){ } ChildrenController: var myApp = angular.modu

    1热度

    1回答

    我为我的大学开始了一个新项目,我的代码出现问题。 当我使用Smooth Scroll转到另一个锚点时,#name_of_the_anchor链接出现在状态栏上。 只有当我使用“a href”时,Smooth Scroll才能正常工作,所以状态栏会显示每个div的链接。 的JavaScript: $(document).ready(function(){ $('a[href^="#"]')

    1热度

    1回答

    我正试图实现与phptherightway.com相同的结构。当你在右侧主页上滚动时,左侧会通过锚点跳下来,我认为它突出显示了左侧。我如何去重新创建?可以只使用锚标签来完成,还是需要更高级的东西,比如jquery? 右侧是否使用这个? < A HREF = “#示例”> 虽然左侧使用?如果你希望页面 <div id="example">....</div> 现在: - <名称= “榜样”>