这样写是否正确
来源:2-10 编程练习
慕仙8252860
2019-10-26 21:37:05
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/*完善下列代码*/
.per{
position: relative;
width: 300px;
height: 300px;
background: red;
margin-left:200px;
margin-top: 200px;
}
.son{
width: 100px;
height: 100px;
background: blue;
position:absolute;
left:100px;
top: 100px;
}
</style>
</head>
<body>
<div class="per">
<div class="son"></div>
</div>
</body>
2回答
樱桃小胖子
2019-10-27
效果实现的是可以的,继续加油哦!
从初级前端到架构
2019-10-26
可以这样写
相似问题