批改状态:合格
老师批语:记得及时修改作业哦!要求群文件中有哦!

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
body{
display: flex;
justify-content: space-around;
}
hr{
width: 150px;
margin-left: 0;
}
.box1{
width: 200px;
height: 200px;
background-color: #708090;
display: table-cell;
vertical-align: middle;
}
.box11{
background-color: #996633;
width: 100px;
height: 100px;
margin: auto;
text-align: center;
}
.box11 a{
line-height: 100px;
}
.box2{
width: 200px;
height: 200px;
background-color: #FC0107;
display: table-cell;
vertical-align: middle;
}
.box21{
text-align: center;
color: #fff;
}
.box3{
width: 200px;
height: 200px;
background-color: #0F80FF;
display: table-cell;
vertical-align: bottom;
text-align: center;
}
</style>
</head>
<body >
<div>
<div class="box1">
<div class="box11"><a >行内元素</a></div>
</div>
</div>
<div>
<div class="box2">
<div class="box21"><span>1.文本1</span><br><span>2.文本2</span></div>
</div>
</div>
<div>
<div class="box3">
<p>底部文本</p>
</div>
</div>
</body>
</html>点击 "运行实例" 按钮查看在线实例
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号