How to make Bootstrap work on IE7

Asked

Viewed 2,805 times

0

there is some way to make the Bootstrap compatible with IE,
in the documentation talks about the Respond.js but it didn’t work,
follow example link

<!doctype html>


<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>    

<link rel="stylesheet" href="https://djyhxgczejc94.cloudfront.net/frameworks/bootstrap/3.0.0/themes/white-plum/bootstrap.min.css"> 
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css">

</script> </script> </script>




- col-Md-4 - - col-Md-4 - - col-Md-4 -

    <div class="row">   
        <div class="col-md-6">
            <div class="well"> - col-md-6 - </div>
        </div>
        <div class="col-md-6">
            <div class="well"> - col-md-6 - </div>
        </div>

    </div>    

this behaves like this in the Chrome:inserir a descrição da imagem aqui and so on IE7:inserir a descrição da imagem aqui

  • what version of IE you’re talking about?

  • tested in the IE7 and IE8

2 answers

3


Support Bootstrap for Internet explorer 8 +

Internet Explorer 8 and 9 are also supported, However, Please be Aware that some CSS3 properties and HTML5 Elements are not Fully supported by These browsers. In addition, Internet Explorer 8 requires the use of Respond.js to enable media query support.

Some Features are not supported, such as "border-Radius"...etc (If you have questions about what you can and cannot use .. and where: http://caniuse.com/)

Bootstrap’s "basic" template is: (http://getbootstrap.com/getting-started/#template)

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <h1>Hello, world!</h1>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>
  • 1

    just to illustrate their choice, http://theie7countdown.com/

  • kkkk, particularly I agree, but I need to make it work on IE7 and IE8

0

I had a problem a while ago with Bootstrap and IE. Which was solved as follows:

<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script>
<![endif]-->

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

By putting this into solved my problem. It ended up losing columns and some settings like HTML5 tags.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.