<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=320"/>
<link rel="stylesheet" href="css/demo1.css"/>
</head>
<body>
<div class="pic">Yellow</div>
</body>
</html>
.pic{
width:320px;
height:568px;
background-color:yellow;
color:white;
font-size:150px;
text-align:center;
line-height:1136px;
font-family:"Microsoft YaHei";
}
跟我的一样 line-height改成568
<html>标签中,<meta>不需要关闭,可能是这个原因;
你的font-size为什么要设置的那么大?
把注释里面的加上试试