IE8 issue with Twitter Bootstrap 3

后端 未结 22 2413
情歌与酒
情歌与酒 2020-11-22 13:48

I am creating a site using the new Twitter Bootstrap. The site looks fine and works in all required browsers except IE8.

In IE8 it seems to be displaying elements o

22条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 14:30

    I had exactly the same problem when migrating from bootstrapv2 to v3.

    If (like me) you migrated by replacing the old spanX with col-sm-X you also need to add col-X classes. col-X are the styles that are outside of any @media blocks so they work without media query support.

    To fix the container width you can set it yourself outside of a @media block. Something like:

    .container {
      max-width: @container-tablet;
    }
    @import "twitter-bootstrap/less/bootstrap";
    

提交回复
热议问题