2-10编程练习请老师检查
来源:2-10 编程练习
qq_鸭绿桥第一帅哥_0
2018-11-12 22:27:21
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/*完善下列代码*/
.per{
width: 300px;
height: 300px;
background: red;
margin-left:200px;
margin-top: 200px;
position: relative;
}
.son{
width: 100px;
height: 100px;
background: blue;
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
margin: auto auto;
}
</style>
</head>
<body>
<div class="per">
<div class="son"></div>
</div>
</body>
</html>1回答
测试了你的代码,效果可以实现
继续加油!
相似问题