<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><br>程式碼如下:<br><br> </div>程式碼如下: <link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen">