JavaScript-Mobile phone to access the computer written on the PHP page, JS script failure is what?

Source: Internet
Author: User

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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.