CSS:
div#test {display: none; z-index: 1}
JS:
// 按钮var button = createElement("button");button.onclick = ShownDiv();button.value = "点击弹出div"// 显示function ShownDiv(){ $("#test").display = "block"; $("#test").zIndex = 2;}