Showing
1 changed file
with
8 additions
and
4 deletions
@@ -11,14 +11,18 @@ | @@ -11,14 +11,18 @@ | ||
11 | <link rel="stylesheet" href="mobilebone.css"> | 11 | <link rel="stylesheet" href="mobilebone.css"> |
12 | <script src="mobilebone.js"></script> | 12 | <script src="mobilebone.js"></script> |
13 | <body> | 13 | <body> |
14 | - <div id="pageHome" class="page out"></div> | 14 | + <div id="pageHome" class="page out"> |
15 | <div class="content"></div> | 15 | <div class="content"></div> |
16 | - <div id="page1" class="page out"></div> | 16 | + </div> |
17 | + <div id="page1" class="page out"> | ||
17 | <div class="content"></div> | 18 | <div class="content"></div> |
18 | - <div id="page2" class="page out"></div> | 19 | + </div> |
20 | + <div id="page2" class="page out"> | ||
19 | <div class="content"></div> | 21 | <div class="content"></div> |
20 | - <div id="page3" class="page out"></div> | 22 | + </div> |
23 | + <div id="page3" class="page out"> | ||
21 | <div class="content"></div> | 24 | <div class="content"></div> |
25 | + </div> | ||
22 | </body> | 26 | </body> |
23 | 27 | ||
24 | 单页switch切换主体不能是body元素(只有唯一一个),所以只能降级到下级标签,这里的class为page的几个DIV就担当了body的角色。 | 28 | 单页switch切换主体不能是body元素(只有唯一一个),所以只能降级到下级标签,这里的class为page的几个DIV就担当了body的角色。 |
-
Please register or login to post a comment