<html>
<head>
<style type="text/css">
hr {
width: 0.5%;
height: 45%;
border: none;
border-left: 2px dashed #60b654;
background-color: white;
position: absolute;
top: 10px;
left: 40px;
z-index: -1;
}
table{
width:20%;
height:30%;
}
#big{
width:200px;
height:100px;
position:absolute;
background:pink;
}
</style>
</head>
<body>
<div id="big">
<tabel>
<tbody>
<tr>
<td>
<div style="background:red;width:50px;height:70px;">
<hr >
</div>
</td>
</tr>
</tbody>
</tabel>
</div>
<h1>这是一个标题</h1>
/* position 子元素会继承父元素的position属性吗,?求解答*/
<p>默认的 z-index 是 0。Z-index -1 拥有更低的优先级。</p>
</body>
</html>
stone310