search

Home  >  Q&A  >  body text

Regarding the problem that the browser does not recognize the website after it is uploaded

Hello everyone, I have just played the server and I don’t understand a lot. I hope you can give me some advice. Thank you very much in advance.

I made my own web page locally, using 360 browser, under localhost, and it was normal (this is the condition for writing code), but I bought Alibaba Cloud's ecs and uploaded it. , so I couldn’t wait to enter the domain name to have a look, and when I saw the result, I was so panicked that my face turned pale (just like when I was a child and got into trouble), the style was completely changed, and even the ico icon did not appear. Right-click the mouse I can’t even click on the censorship element. When I press F12, IE browser stuff actually appears. Look, here’s an example: 3602.jpg

I’m confused. I obviously pressed F12 in 360, but IE appears. At that time, I thought there was something wrong with the computer. After searching on Baidu, I found that the 360 ​​uses the IE kernel. Well, that makes sense, but... I pressed F12 on localhost and the following appeared:

3601.jpg

I also specifically consoled navigator.appCodename. Take a look. Isn't the output 'Mozilla'? kid me? Where is IE? . drunk. Moreover, after uploading to the server, many things were messed up, and the alert box was also different, becoming the same as the IE box a few years ago.

So, my question is why does 360 Browser change to IE after the web page is uploaded to the server? (Styles are also incompletely recognized due to changes in the browser kernel, and some are incompatible). Is this a problem with our web pages? Or is it a problem with the server ECS?

Also, the content of my php echo's js alert("") is also garbled. I set header("Content-type:text/html;charset:utf-8");.

Please solve it. Really helpless.


缺一个女朋友缺一个女朋友2562 days ago1685

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-11-25 17:42:09

    1511602871(1).jpg

    360 browser has two modes, one is extremely fast and the other is compatible. Did you find it?

    The speed is based on the Google kernel and is compatible with the IE kernel!

    reply
    1
  • 缺一个女朋友

    Solved, it was due to the deployment of the server environment.

    缺一个女朋友 · 2017-11-27 21:28:17
    ringa_lee

    Yeah, okay

    ringa_lee · 2017-11-27 23:21:20
  • Cancelreply