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

tab组件默认索引不是第一个时的临时方案 #20

Open
fayching opened this issue Feb 12, 2015 · 1 comment
Open

tab组件默认索引不是第一个时的临时方案 #20

fayching opened this issue Feb 12, 2015 · 1 comment

Comments

@fayching
Copy link
Member

var tab = new fz.Scroll('.ui-tab', {
    role: 'tab',
    interval: 3000,
    autoplay: true
});
tab.currentPage = 1;
$(tab.nav.children[0]).removeClass('current');
$(tab.nav.children[tab.currentPage]).addClass('current');
tab.scrollTo(-tab.itemWidth * tab.currentPage, 0);
@fayching
Copy link
Member Author

fayching commented Mar 4, 2015

还有个问题,第一个tab内容不是最高的时候会被后面的拉高,需要初始化给后面的tab内容高度设为0

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