添加一个div层并在右上角有个叉叉

mac2022-06-30  78

<html><head><script>function turnoff(obj){document.getElementById(obj).style.display="none";}

function turnon(obj,e){ document.getElementById(obj).style.display="block";}</script><title>我是标题</title></head><body><div id="abc"><a href="#" οnclick="javascript:turnoff('abc')">点击关闭</a><h1>DIV中的其它文字</h1><p>DIV中的其他文字</p> </div></body></html>

转载于:https://www.cnblogs.com/J2EEPLUS/archive/2010/05/11/2487929.html

最新回复(0)