}</style></head><body><h1>DOM StylezIndexProperty Example</h1><divclass='box1'></div><divclass='box2'></div><buttononclick="add()"class="btn">ChangezIndex</button><script>functionadd(){document.querySelector('.box1').style.zIndex="1"; }</script></body></html> 输出 这将产生以下输出 - 点击”Change zI...