Commit 284e8cdb by doszhang

dos

parent d1675732
...@@ -101,6 +101,9 @@ $(document).ready(function () { ...@@ -101,6 +101,9 @@ $(document).ready(function () {
window.scroll(0, 0); //失焦后强制让页面归位 window.scroll(0, 0); //失焦后强制让页面归位
}); });
initPage(); initPage();
$('.rule-block').attr('id', 'rule-block')
$('.index-block').css('top', getTranslateDistance(20)); $('.index-block').css('top', getTranslateDistance(20));
$('.question-block').css('top', getTranslateDistance(-36)); $('.question-block').css('top', getTranslateDistance(-36));
$('.rule-page').css('top', getTranslateDistance(-40)); $('.rule-page').css('top', getTranslateDistance(-40));
...@@ -201,7 +204,7 @@ function ruleScroll() { ...@@ -201,7 +204,7 @@ function ruleScroll() {
} }
function loaded() { function loaded() {
myScroll = new IScroll('#wrapper'); myScroll = new IScroll('#rule-block');
} }
function hideRule() { function hideRule() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment