📄 14.htm
字号:
<html>
<head>
<title>改变图片重叠顺序</title>
<style type="text/css">
.s1{position:absolute;
top:10;left:10;
}
.s2{position:absolute;
top:50;left:50;
}
</style>
<script language="javascript">
<!--
function ch(obj){
ID1.style.zIndex = 0;
ID2.style.zIndex = 0;
obj.style.zIndex = 1;
}
//-->
</script>
</head>
<body>
<img src="pic1.jpg" id="ID1" class="s1" onMouseOver="ch(this)">
<img src="pic2.jpg" id="ID2" class="s2" onMouseOver="ch(this)">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -