When I use "slide" back to the former page ,Chrome displays blank.
I am developing a mobile web app .To imitate the native app swipe effect,I used the "slide" of transitions to change the page, but I have found when the program runs in Chrome , it will display blank after the page2 swipe to the page1 , this issue only appears in Chrome, and the other transition effects are normal .
My code is following, and my English is poor, I don't know whether I express myself clearly.
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <title>demo</title>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
- <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script><script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
- <script >
- $(function(){
- $("#slide1").on("click",
- function() {
- $.mobile.changePage("#slide2", {
- transition: "slide",
- });
- });
- $("#slide2").on("click",
- function() {
- $.mobile.changePage("#slide1", {
- transition: "slide",
- reverse: true,
- });
- });
- });
- </script>
- </head>
- <body>
-
- <div data-role="page" id="slide1" >SLIDE1 </div>
- <div data-role="page" id="slide2" > SLIDE2 </div>
- </body>
- </html>