请老师检查
来源:5-2 编程练习
诗曦
2019-03-30 15:04:33
<html>
<head>
<style type="text/css">
img {
width:300px;
height:300px;
}
.div01 {
color:red;
position:absolute;
top:50px;
left:50px;
z-index:100;
}
.div02 {
color:red;
position:absolute;
top:70px;
left:70px;
z-index:200;
}
</style>
</head>
<body>
<div class="div01">
<img src="img/2.jpg" />
</div>
<div class="div02">
<img src="img/1.jpg" />
</div>
</body>
</html>
1回答
您好,正确哦~继续加油!
相似问题