Recently done a project, using jquery Ajax for page partial replacement display, the FF inside the display is normal, but in the IE8 under the aliasing, can only show part of the effect. At first I also suspect that Ajax is not the return of HTML content format, encoding and other problems, delete some of the content of the page to test, still under the IE8 "indomitable" ... Then started Baidu, AOI.
This last sentence solves the problem: Switching the display state of a DOM element allows IE to re-render and load the CSS.
Netizen's Section code:
<script type= "Text/javascript" > $ (function () { $ (' #bt ') ). Click (function () { $ (' #main '). Dialog ({ open: function () { var self = $ (This); $.get (' markup.jsp ', function (markup) { self.hide (). HTML ( Markup). Show (); //here is the point, the actual operation is the display property }); } }); }); }); </script>
The page test needs to be cautious, ie each version has to try. ^_^
IE7, IE8 Ajax loaded content style does not work as a workaround