setting IE8 to use the content-box model to look the same as IE7

質問 setting IE8 to use the content-box model to look the same as IE7

  • 22 สิงหาคม 2555 19:30
     
     

    In CSS I routinely set box-sizing to border-box (to make the browser use the border-box model) and for IE 7-8 I manually adjust the height/width of elements that display differently (highly visible and easy to solve). 

    For simplicity, I use an IE conditional statement to lump IE7 and IE8 together, so I can use the 'ie78' class in CSS to modify them. However, IE8 is just different enough, from IE7 that the occasional incompatibility crops-up. It occurred to me  that I could create a rule for ie7-8 to both use the content-box model. 

    My question is, will IE8 render exactly the same as IE7 in this case, so I only need two IE rules (one for ie9 and one for ie 7-8)?

    -Michael

ตอบทั้งหมด

  • 22 สิงหาคม 2555 20:54
     
     

    Hi,

    I find the grid-960 (fixed or fluid) system with a reset.css to be the most interoperable. no box model rules required (negated by the reset.css).


    Rob^_^