Making Zurb's Foundation 3 work with IE7

前端 未结 2 509
无人及你
无人及你 2021-02-08 11:15

A solution has been proposed for making Zurb\'s Foundation 3 Framework work with IE7. Not necessarily complicated support, but certainly grid support.

Solution is presen

2条回答
  •  不知归路
    2021-02-08 12:02

    Another solution would be to detect ie7 with conditional comments and then apply a CSS fix for columns like this:

    .ie7 .columns{
        margin-right: -15px ;
        margin-left: -15px ;
        display:-moz-inline-stack;
        display:inline-block;
        zoom:1;
        *display:inline;
    }
    

    This clears the padding on the columns and fixes the grid. you can do the same on other divs or parts of the layout.

    Also, you will need to fix the centered columns and the offset-by columns like this:

    .ie7 .row{
        clear: both;
        text-align: center;
    }
    
    .ie7 .offset-by-three {
        margin-left:25% !important;
    }
    .ie7 .offset-by-seven {
        margin-left:58.33% !important ;
    }
    

    And of course the conditional comments:

    
    
    
      
    

提交回复
热议问题