Bootstrap compatible IE

Source: Internet
Author: User

This responsive layout is implemented through the CSS3 Media query feature, which matches different styles depending on the resolution. IE8 Browser does not support this excellent CSS3 feature,Bootstrap wrote in the development document how to use the compatible IE8, if you want to be compatible with IE6,IE7, you can search Bsie (BOOTSTRAP2).

Http://v2.bootcss.com

1, note that using Bootstrap is best used with jquery below 2.0;

2,IE8 below does not support placeholder

<Scripttype= "Text/javascript"src= "Js/bootstrap/jquery.placeholder.js"></Script><Scripttype= "Text/javascript">    $(function () {        $('input, textarea'). placeholder (); });</Script>

Summarize:

<!DOCTYPE HTML><HTMLLang= "ZH-CN"><Head>    <MetaCharSet= "UTF-8">    <Metaname= "Viewport"content= "Width=device-width, User-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">    <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge,chrome=1" />    <Metaname= "Author"content= "Zhy" />    <title>Ie8</title>    <Linkrel= "stylesheet"href= "Css/bootstrap/bootstrap.min.css">    <!--[If LTE IE 9]> <script src=js/bootstrap/respond.min.js "></script> <script src=js/bootstrap/htm L5shiv.min.js "></script> <! [EndIf] -    <Scriptsrc= "Js/bootstrap/jquery-1.12.0.min.js"></Script>    <Scriptsrc= "Js/bootstrap/bootstrap.min.js"></Script></Head><Body></Body></HTML>

IE judge IE version of the statement:

<!--[If LTE IE 6]><! [EndIf] -IE6 and the following versions are visible<!--[If LTE IE 7]><! [EndIf] -IE7 and the following versions are visible<!--[If IE 6]><! [EndIf] -only the IE6 version is visible<![if! IE]><![endif]>versions other than IE<!--[If Lt IE 8]><! [EndIf] -IE8 The following versions are visible<!--[If GTE IE 7]><! [EndIf] -IE7 and versions larger than IE7 are visible

LTE: is less than or equal to the shorthand, that is, smaller than or equal to the meaning.
LT: is less than shorthand, that is, smaller than the meaning.
GTE: is greater than or equal to the shorthand, that is, greater than or equal to the meaning.
GT: is greater than shorthand, that is, the meaning of greater than.
! : Is not equal to the meaning of the JavaScript is not equal to the same judge

Bootstrap compatible IE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.