Bootstrap page can not be displayed to solve the problem correctly in 360 secure browser compatibility mode

Bootstrap page can not be displayed to solve the problem correctly in 360 secure browser compatibility mode

July 31, 2017 16:29:17  Askar Hamburger  Reads: 6600

 Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u011492260/article/details/76449139

The company recently made a very simple function of the website system, I habitually use chrome browser debugging, web front end with a large number of the bootstrap, but also to please the leader plus a lot of H5 + CSS3 effects, a variety of charts, all conducted so smoothly. One day leadership program said to look at what I do, I'll give him access ip address, he used his computer open look, he opened Le me ... with ie8 Win7, and those I have been able to add special effects chart does not show is not displayed, can be ugly ugly, anyway, and I hope the effect on the contrary, the leadership seems to have discovered a problem, I said: most of our customers use ie browser can not ask them to use the latest browser, your program must compatible ie8, then I started to change.

Let Bootstrap support ie8 method is not difficult, in the header to add the following piece of code can be, for this is the official solution:

 

 
  1. <!--[if lt IE 9]>

  2. <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>

  3. <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

  4. <![endif]-->

Then put some ie8 do not support the css3 properties with pictures to get rid of, such as border-radius I use ps nice picture instead.

 

Then I looked at the open ie8, restore the original appearance of the site 85%, think about it, and then take over the leadership to say, he said, let's look at the test group test, I put the address to access the test group, the test group colleagues with 360 secure browser to open the web application, use the "speed mode" no problem, use the "compatibility mode" than the previous ie8 tragedy but also a serious, yet he let me begin testing ui change issues. I found 360 the browser ...... not much to say, to solve the problem! The so-called speed mode is to use chrome core rendering web pages, that rapid mode is actually a chrome kernel wore a jacket just 360, my program is no problem in chrome, so in fast mode naturally no problem, but this Compatibility mode is used ie browser kernel rendering web pages, but the default engine is ie7 .......... so my poor barely able to run the program under ie8, but in ie7 completely collapsed.

360 Safe Browser:

The so-called core speed mode == chrome shell +360

The so-called compatibility mode == ie the shell browser kernel +360

In order to solve the problem I checked a lot of information, and how to bootstrap in ie7 can normally run up? Ultimately did not find the answer, go through i7 is Stone Age stuff! I wonder child a question, Li Mingming have ie8 computer browser, why do not ie8 browser engine 360, but had ie7 engine with it? Seize this issue, I found a way to force the browser requirements specified in the kernel ie to render web pages, plus the head of the page

 

<meta http-equiv="X-UA-Compatible" content="IE=8"/>

This can be used to force ie8 core rendering web pages, if there is a later version of the computer ie it is set to a later version, such as ie9 10 11 edge and so on, the higher the version pits the less!

Guess you like

Origin blog.csdn.net/qq_42310995/article/details/88565952