Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/380.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Jquery幻灯片从右到右使用fiddle,但不在活动站点上使用_Javascript_Jquery_Css - Fatal编程技术网

Javascript Jquery幻灯片从右到右使用fiddle,但不在活动站点上使用

Javascript Jquery幻灯片从右到右使用fiddle,但不在活动站点上使用,javascript,jquery,css,Javascript,Jquery,Css,我有滑动内容(移动菜单) 我让它在这里工作:首先内容不可见,然后从右侧滑入,然后返回到向右滑动和隐藏 我遇到的问题是,在网站上,它仍然从左侧滑入,我没有看到,因为我的小提琴工作得很好 编辑:在网站上更新以下代码 JS: jQuery('.nav-toggle').click(function () { var $marginLefty = jQuery('#navigation'); $marginLefty.animate({ right: parseInt($

我有滑动内容(移动菜单)

我让它在这里工作:首先内容不可见,然后从右侧滑入,然后返回到向右滑动和隐藏

我遇到的问题是,在网站上,它仍然从左侧滑入,我没有看到,因为我的小提琴工作得很好

编辑:在网站上更新以下代码

JS:

jQuery('.nav-toggle').click(function () {
    var $marginLefty = jQuery('#navigation');
    $marginLefty.animate({
        right: parseInt($marginLefty.css('right'), 10) == 0 ? -$marginLefty.outerWidth() : 0
    });
});
CSS:

#navigation {
background-color: #44CC55;
bottom: 0;
color: #333333;
height: 36px;
right: -350px;
padding: 6px;
width: 338px;
position: absolute;

}

您需要使用
而不是
?请参阅@ArunPJohny:再次感谢您的帮助,我会再试一次。你查过有问题的网站了吗?你看到其他问题了吗?现在没什么值得注意的。。。。试试看让我们知道让我们知道