IE7 and the CSS table-cell property

前端 未结 10 1820
名媛妹妹
名媛妹妹 2020-11-29 20:17

So I just love it when my application is working great in Firefox, but then I open it in IE and... Nope, please try again.

The issue I\'m having is that I\'m setting

10条回答
  •  迷失自我
    2020-11-29 21:17

    I've solved this using jQuery:

    $(document).ready(function(){
      if ($.browser.msie && $.browser.version == 7)
      {
        $(".tablecell").wrap("");
        $(".tablerow").wrap("");
        $(".table").wrapInner("");
      }
    });
    

    the above script assumes you have divs using style such as:

    
    

    提交回复
    热议问题