<div class="codetitle"> <span><a style="CURSOR: pointer" data="39268" class="copybut" id="copybut39268" onclick="doCopy('code39268')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code39268"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br><HTML> <br><HEAD> <br><TITLE> New Document </TITLE> <br><meta charset="UTF-8"> <br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <br><META NAME="Author" CONTENT=""> <br><META NAME="Keywords" CONTENT=""> <br><META NAME="Description" CONTENT=""> <br><style type="text/css"> <br>* <br>{ <br>padding:0px; <br>margin:0px; <br>} <br>#Idiv <br>{ <br>width:900px; <br>height:auto; <br>position:absolute; <br>z-index:1000; <br>border:2px solid #ffffff; <br>background:#ffffff; <br>} <br></style> <br><br></HEAD> <br><body> <br><br><div id="Idiv" style="display:none;"> <br><a href="javascript:void(0)" onclick="closeDiv()">点击关闭层</a> <br><br/>document.documentElement 的区别<br/>document.documentElement 的区别 <br></div> <br><div><a href="javascript:void(0)" id="show" onclick="show()">点击打开弹出层!</div> <br> </div>