IE8 issue with Twitter Bootstrap 3

后端 未结 22 2405
情歌与酒
情歌与酒 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条回答
  •  無奈伤痛
    2020-11-22 14:33

    I had this same issue when transitioning from Bootstrap 2 to 3. I'd already got respond.js and html5shiv.js and set my meta to edge. I'd missed that from 2 to 3 the navbar element type had changed. In Bootstrap 2 it was nav. In Bootstrap 3 it's now header. So to fully resolve the problem I had to

    
    

    Put this right after I'd loaded my css:

    
    

    and then change

    
    

    to

    
    

    Oh and for good measure I also added

    
    

    simply because that's what the Bootstrap site itself has.

提交回复
热议问题