老师请检查
来源:3-5 编程练习
piii
2020-08-04 17:23:26
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>text.html</title>
<style type="text/css">
.content{
width:800px;
height:400px;
background-color:skyblue;
padding-top:200px;
box-sizing:content-box;
}
.top{
width:400px;
height:200px;
background-color:yellow;
margin-left:200px;
}
</style>
</head>
<body>
<div class="content">
<div class="top"></div>
</div>
</body>
</html>2回答
同学你好。代码是正确的,同学完成的不错。棒棒的~ 再接再厉!如果我的回答解决了你的疑惑,请采纳,祝学习愉快~
piii
提问者
2020-08-04
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>text.html</title>
<style type="text/css">
.content{
width:800px;
height:400px;
background-color:skyblue;
padding-top:100px;
box-sizing:border-box;
}
.top{
width:400px;
height:200px;
background-color:yellow;
margin-left:200px;
}
</style>
</head>
<body>
<div class="content">
<div class="top"></div>
</div>
</body>
</html>