css定位2-4编程
来源:2-4 编程练习
qq_精慕门6417434
2021-02-21 20:52:44
相关代码:
<!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;
}
.son{
width: 100px;
height: 100px;
background: blue;
position:relative;
top:100px;
left:100px;
}
</style>
</head>
<body>
<div class="per">
<div class="son"></div>
</div>
</body>
</html>
1回答
好帮手慕小脸
2021-02-22
同学你好,测试运行上述贴出的代码是可以的,棒棒的!继续加油~
祝学习愉快~
相似问题