The interface display is incorrect
P粉998920744
P粉998920744 2023-09-12 17:37:15
0
1
567

Good afternoon/evening, I am currently creating a website and decided to test its adaptability. Everything looks fine on the computer:

But when I transfer it to my phone (Redmi Note 9 PRO and Samsung Galaxy J1), the following results appear:

For some reason, the mobile browser cannot see the imported styles and JS. I have a question: if I put it on hosting, will it be the same thing? Why can't I see the style on my phone?

If you need meta tags and file paths, then they are:

       

I would appreciate an explanation as to why this is happening, thank you in advance

P粉998920744
P粉998920744

reply all (1)
P粉545218185

I guess you are opening the file directly, and you may need an http server like this:https://www.npmjs.com/package/http-server

You can have it listen on 0.0.0.0 and then you should be able to open it via your local IP.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!