Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动跳到index为1的page #6

Open
mxm145 opened this issue Aug 1, 2016 · 4 comments
Open

自动跳到index为1的page #6

mxm145 opened this issue Aug 1, 2016 · 4 comments

Comments

@mxm145
Copy link

mxm145 commented Aug 1, 2016

我用示例代码,运行之后会自动跳到page为1的div上去,代码如下:

<script src="js/EasySlide.js"></script>
1
2
<script> var Slide = new EasySlide({ replay:true, //每页动画都重新播放 wrapAll:"j_wrap" //整个slides的父容器 }); </script>

image

@mxm145
Copy link
Author

mxm145 commented Aug 1, 2016

<link href="css/EasySlide.css" rel="stylesheet"> <!-- EasySlide所依赖的css -->
<script src="js/EasySlide.js"></script>
<div class="EasySlide-warp" id="j_wrap">
    <div index="0" class="EasySlide-slides">1</div>
   <div index="1" class="Easyslide-slides">2</div>
</div>
<script>
var Slide = new EasySlide({
    replay:true, //每页动画都重新播放
    wrapAll:"j_wrap" //整个slides的父容器
});
</script>

@mxm145
Copy link
Author

mxm145 commented Aug 1, 2016

我希望能默认看1,滑动之后到2去,现在一打开页面就显示2

@mxm145
Copy link
Author

mxm145 commented Aug 1, 2016

不知道哪里设置错了,能不能帮看看

@mxm145
Copy link
Author

mxm145 commented Aug 1, 2016

你的示例文件里面的大小写错了,坑啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant