老师能帮忙检查一下
来源:3-12 编程练习
慕田峪5398473
2019-02-17 17:40:56
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>vertical-align</title>
<style type="text/css">
*{padding:0px;margin: 0px;}
.warp1{
height:80px;
width: 100%;
background-color: #14191e;
text-align:center;
line-height:80px;
/*在此补充代码*/
}
.warp1 h1{ color:#fff;
font-size:24px;
/*在此补充代码*/ }
.warp2{
height:400px;
width: 100%;
border:1px #14191e solid;
display:table;
/*在此补充代码*/
}
.content{
/*text-align:center;*/
display:table-cell;
vertical-align:middle;
/*在此补充代码*/
}
.content p{ width:500px;
font-family: "微软雅黑";
margin:0 auto;
font-size:14px;
line-height:1.5em;
/*在此补充代码*/}
</style>
</head>
<body>
<div class="warp1">
<h1>欢迎来到慕课网</h1>
</div>
<div class="warp2">
<div class="content">
<p>慕课网,只学有用的!</p>
<p>慕课网(IMOOC)是IT技能学习平台。慕课网(IMOOC)提供了丰富的移动端开发、php开发、web前端、android开发以及html5等视频教程资源公开课。并且富有交互性及趣味性,你还可以和朋友一起编程。</p>
</div>
</div>
</body>
</html>
1回答
好帮手慕糖
2019-02-18
同学你好,测试了下,实现没有问题,继续加油!欢迎采纳。
祝学习愉快!
相似问题