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