感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
<div class="parent-wraper">
<div class="child-wraper"></div>
</div>
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
.parent-wraper{
position:relative;
height:50px;
border:1px solid blue;
}
.child-wraper{
border:1px solid red;
position:absolute;
top:0;
left:0;
bottom:0;
right:0;
height:50%;
margin:auto;