我正在尝试在z-index上制作一个简单的html,其中2个图像高于其他图像:
<html>
<head>
<title>test</title>
<style type="text/css">
back {
position: absolute;
left: 0px;
top:0px;
z-index:0;
}
front {
position: absolute;
left: 0px;
top:0px;
z-index:1;
}
</style>
</head>
<body>
<img id="front" src="loading.gif">
<img id="back" src="plasma.jpg">
</body>
<html>
Run Code Online (Sandbox Code Playgroud)
但为什么z-index不起作用?