代码是否正确?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文本样式</title>
<style type="text/css">
/*写出CSS样式*/
p{
background-color:#eee;
font-size:2em;
text-align:center;
line-height:5em;
}
a{
font-size:2em;
vertical-align:middle;
}
span{
color:red;
text-decoration:underline;
vertical-align:middle;
}
#aa{
vertical-align:middle;
}
</style>
</head>
<body>
<!--写出html代码-->
<P>
<img src="http://img1.sycdn.imooc.com/climg//59c21bae000157fa01000059.jpg" id="aa">
<a>CSS层叠样式表</a>
<span>(Cascading Style Sheets)</span>
</P>
</body>
</html>
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星