In the wamp environment, I wrote a website on my computer. How can I access my mobile phone?

Source: Internet
Author: User
After apache + php + mysql is configured on the local computer, the website is written in advance on the computer, and access is normal in the Computer Browser. The result is that the mobile phones in the same Wi-Fi network can also browse the websites written on the computer. The problem is that I can allow my mobile phone to access my computer... after apache + php + mysql is configured on the local computer, the website is written in advance on the computer, and access is normal in the Computer Browser.

The effect to be achieved is:
Allows mobile phones in the same Wi-Fi network to browse websites written on the computer.

The problem is:
I can allow my mobile phone to access a website written on my computer, but the phone shows a problem! Js scripts and css styles cannot be loaded normally. Only one html skeleton can be displayed, which looks terrible ~~

How can this problem be solved ?? Hope you can provide detailed solutions ......

Reply content:

After apache + php + mysql is configured on the local computer, the website is written in advance on the computer, and access is normal in the Computer Browser.

The effect to be achieved is:
Allows mobile phones in the same Wi-Fi network to browse websites written on the computer.

The problem is:
I can allow my mobile phone to access a website written on my computer, but the phone shows a problem! Js scripts and css styles cannot be loaded normally. Only one html skeleton can be displayed, which looks terrible ~~

How can this problem be solved ?? Hope you can provide detailed solutions ......

Check whether the relative path of your resource file should be enough.

As a good programmer, how can I lose chrome debugging tools ?!

Click the icon of the cell phone, and select "select model" in the upper left corner to select the phone you want to simulate,
If it is a program problem, will you at least read the logs?

Is there a mobile phone check. Css may be empty. Use a browser to simulate a mobile phone test and check the source code.

Configure to the service directory and connect to the same LAN.

Take out the static file path of your website and allow your mobile phone to access it.

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

The mobile phone can be accessed:

We recommend that you use the Hbuilder editor .. On the locally written page, you only need to scan the code on your mobile phone to access the page .. Of course, it must be in the same network.

Use the IP address of your computer to access the page, and then generate a QR code. The mobile phone is OK after scanning.

There are so many answers to such simple and horrible questions...

... Check the code.

As a good programmer, how can I lose the debugging tool of firefox ?! Ctrl + Shift + M

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.