How to make Bootstrap responsive layout work on IE8

前端 未结 10 1705
醉酒成梦
醉酒成梦 2021-01-31 19:54

I\'ve been search for a while and found some people got it working, but none of them provide any code samples.

I tried their suggestions but it didn\'t work for me. By s

10条回答
  •  太阳男子
    2021-01-31 19:58

    Your issue is trying to use respond.js with CSS stylesheets that are on external domains. Respond.js will fix media queries for IE6-IE8.

    https://github.com/scottjehl/Respond#cdnx-domain-setup

    Respond.js works by requesting a pristine copy of your CSS via AJAX, so if you host your stylesheets on a CDN (or a subdomain), you'll need to upload a proxy page to enable cross-domain communication.

    See cross-domain/example.html for a demo:

    Upload cross-domain/respond-proxy.html to your external domain
    Upload cross-domain/respond.proxy.gif to your origin domain
    Reference the file(s) via  element(s):
    
    
    
    
    
    
    
    
    
    

    If you are having problems with the cross-domain setup, make sure respond-proxy.html does not have a query string appended to it.

提交回复
热议问题