Regarding the problem that the browser does not recognize the website after it is uploaded
缺一个女朋友
缺一个女朋友 2017-11-24 22:09:26
0
3
1636

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.


缺一个女朋友
缺一个女朋友

为人谋而不忠乎…

reply all(1)
ringa_lee

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 Solved, it was due to the deployment of the server environment.
    缺一个女朋友 author 2017-11-27 21:28:17
  • reply Yeah, okay
    ringa_lee author 2017-11-27 23:21:20
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!