Strange float behaviour in IE7

后端 未结 6 740
长发绾君心
长发绾君心 2020-12-03 05:56

I want to create a simple box with a header bar containing a title and some tool buttons. I have the following markup:

&
6条回答
  •  旧巷少年郎
    2020-12-03 06:21

    I fixed it using jQuery to emulate the behaviour of the non-IE browsers:

        // IE fix for div widths - size header to width of content
        if (!$.support.cssFloat) {
            $("div:has(.boxheader) > table").each(function () {
                    $(this).parent().width($(this).width());
            });
        }
    

提交回复
热议问题