Internet Explorer 9 not rendering table cells properly

后端 未结 14 2134
借酒劲吻你
借酒劲吻你 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:12

    I had this problem sometimes on tables generated by Knockout. In my case I fixed it using the jQuery solution found here

    jQuery.fn.htmlClean = function() {
        this.contents().filter(function() {
            if (this.nodeType != 3) {
                $(this).htmlClean();
                return false;
            }
            else {
                this.textContent = $.trim(this.textContent);
                return !/\S/.test(this.nodeValue);
            }
        }).remove();
        return this;
    }
    

提交回复
热议问题