Configuration is: php+apache+mysql+windows
The second-level menu is the result of JS+CSS completion:
The page shown on the phone below, the level two menu on the left is not open (JavaScript script is not loaded at all, because the mouse hover does not open the level two menu):
And the page shown on the computer is this:
Also, the width of the main content I set below is set by JS to get the screen resolution:
var s_info={
width:window.screen.width, //这个在电脑上有效 height:window.screen.height
};
$id (' con '). style.width=s_info.width*0.95+ ' px '; The $id () function is my custom
The internal sub-elements are set by percent, but on the phone because the JS script does not load, causing the page to be the first image shown.
The following is my image through the simulation phone page, JS script loading is normal (level two page or open, JS script loading is normal):
The following is what I am viewing on this page of the source code display:
Just don't know, when testing on the actual phone:
1:js script does not load
2: When testing on the phone, the page appears too many white space (the first picture), while browsing on the computer but there is little space (the second picture)
Ask God to solve two problems ....
Reply content:
Configuration is: php+apache+mysql+windows
The second-level menu is the result of JS+CSS completion:
The page shown on the phone below, the level two menu on the left is not open (JavaScript script is not loaded at all, because the mouse hover does not open the level two menu):
And the page shown on the computer is this:
Also, the width of the main content I set below is set by JS to get the screen resolution:
var s_info={
width:window.screen.width, //这个在电脑上有效 height:window.screen.height
};
$id (' con '). style.width=s_info.width*0.95+ ' px '; The $id () function is my custom
The internal sub-elements are set by percent, but on the phone because the JS script does not load, causing the page to be the first image shown.
The following is my image through the simulation phone page, JS script loading is normal (level two page or open, JS script loading is normal):
The following is what I am viewing on this page of the source code display:
Just don't know, when testing on the actual phone:
1:js script does not load
2: When testing on the phone, the page appears too many white space (the first picture), while browsing on the computer but there is little space (the second picture)
Ask God to solve two problems ....
Some JS files are not supported on the phone