div层
<div id="id" style = "position:absolute;z-index:-1;display:none">隐藏的div</div>
<div onmouseover="show();" onmouseout= "hide();"></div>
js代码
1引入jquery框架
2
function show(){
$("#id").attr("z-index",1).attr("display","block");
}
function hide(){
$("#id").attr("z-index",-1).attr("display","none");
}
追问好像不行也!
本回答被网友采纳