This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14162|Reply: 1

[HTML/HTML5] IE8 does not load bootstrap properly

[Copy link]
Posted on 7/31/2017 1:17:11 PM | | | |

IE8 The table in bootstrap below cannot load properly...

If you know that the IE version is too low, you should refer to two js to solve it

In HTML files<head></head>labelThe following code has been added:



After adding the above code, I found the JS error in the web page, as follows:

Web page error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; . NET4.0C; . NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Mon, 31 Jul 2017 03:54:32 UTC


Message: 'doc.body' is empty or not an object
Row: 98
Characters: 60
Code: 0
URI: http://localhost:2018/Plugins/respond.js






In fact, add two sentences to the<head></head> label



Note: bootstrap does not support IE compatibility mode, in order to let IE browser run the latest rendering mode, the above tags will be added to the page, IE=edge means that the latest IE kernel is forced, chrome=1 means that if the browser plug-in Google Chrome Frame for IE6/7/8 and other versions is installed

Success!



Full Code:







Previous:Broker: localhost - Client: myclient already connected from tcp://xxx...
Next:Free video tutorial on cloud computing: Detailed explanation of Bashshell script programming
 Landlord| Posted on 7/31/2017 1:22:56 PM |
Notes:

1. The statement that judges the IE version under IE

lte: It is the abbreviation of Less than or equal to, which means less than or equal to.
lt : It is the abbreviation of Less than, which means less than.
gte: It is the abbreviation of Greater than or equal to, which means greater than or equal to.
gt : It is the abbreviation of Greater than, which means greater than.
! : It means not equal, which is the same as the discriminator in javascrip{filter}t

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com