<br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode37'));"><u>复制代码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode37"> <br><!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]--> <br> </div> <br>用上面这段代码,只有使用IE时加载jquery.bgiframe.js。这点很重要,因为你什么都加载的话会浪费带宽,打开页面速度就会慢!如果专对IE6就改成if IE6。 <br><br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode38'));"><u>复制代码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode38"> <br><!--[if IE 6]> <br><script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script> <br><script type="text/javascript"> <br>DD_belatedPNG.fix('.png_bg, img, li'); <br></script> <br><![endif]--> <br> </div> <br>或者解决ie不同版本布局问题,下面仅仅在ie7中加载ie.css <br><br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode39'));"><u>复制代码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode39"> <br><!--[if lte IE 7]> <br><link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" /> <br><![endif]--> <br> </div>