Wamp environment, on the computer to write the website, how to let mobile phone access?

Source: Internet
Author: User
Configured on the local computer apache+php+mysql, the computer pre-written web site, in the computer-side browser access to normal.

The effects that need to be achieved are:
Let the same WiFi network mobile phone can also be normal to browse the computer-written website.

The problems that arise are:
I can make my mobile phone access to a website written on the computer, but there is a problem on the phone! JS script, CSS style can not load properly, only display an HTML skeleton, looks miserable ~ ~

How is this problem solved?? I hope the great God gives a detailed solution to the steps ...

Reply content:

Configured on the local computer apache+php+mysql, the computer pre-written web site, in the computer-side browser access to normal.

The effects that need to be achieved are:
Let the same WiFi network mobile phone can also be normal to browse the computer-written website.

The problems that arise are:
I can make my mobile phone access to a website written on the computer, but there is a problem on the phone! JS script, CSS style can not load properly, only display an HTML skeleton, looks miserable ~ ~

How is this problem solved?? I hope the great God gives a detailed solution to the steps ...

Check your resource file to write relative path should be.

As a good programmer, how can you get chrome debugging tools less?!

Then click on the Small phone icon, the top left corner of the "Select Model" Select the phone you want to simulate,
If it's a program problem, lad, at least read the log?

Did you do a cell phone test? CSS may be empty, use the browser to simulate the phone side test, check the source code

Configuration to the service directory, connected to the same LAN can be

Take the static file path directly from your website and let the phone access to see if it can be accessed successfully.

For example, this site static files: http://static.segmentfault.com/v-56935546/global/css/global.css

You can access it on your phone:

It is recommended to use the Hbuilder editor. A locally written page can be accessed on the phone by simply scanning the code on the phone. Of course, under the same network.

Use the computer IP address to access the page Ah, and then generate two-dimensional code, mobile phone side sweep on OK.

Such a simple and heinous question, the answer is so varied ...

。。。 I'll have no problem, check the code.

As a good programmer, how can you get less Firefox debugging tools?! Ctrl+shift+m

  • Related Article

    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.