Internet Explorer 9 not rendering table cells properly

后端 未结 14 2174
借酒劲吻你
借酒劲吻你 2020-11-28 02:18

My website has always run smoothly with IE8, IE7, FF, Chrome and Safari. Now I\'m testing it on IE9 and I\'m experiencing a strange problem: in some pages, some tabular data

14条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 03:06

    Found a very useful script to prevent unwanted cells in your html table while rendering.

    function removeWhiteSpaces()
    {
       $('#myTable').html(function(i, el) {
          return el.replace(/>\s*<');
       });
    }
    

    This javascript function you should call when the page loads (i.e. onload event)

提交回复
热议问题