老师帮忙看一下,谢谢!
来源:4-3 编程练习
慕九州4495990
2019-05-19 06:25:13
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文本样式</title>
<style type="text/css">
/*写出CSS样式*/
p{height:5em;line-height:5em;background-color:#eee;font-size:2em;text-align:center;}
img{vertical-align:-8px;}
.one{font-size:2em;}
.two{color: red; text-decoration:underline;vertical-align: 10px}
</style>
</head>
<body>
<!--写出html代码-->
<p>
<span><img src="http://climg.mukewang.com/59c21bae000157fa01000059.jpg"/> <a class="one">CSS层叠样式表</a></span>
<span class="two">(Cascading Style Sheets)</span>
</p>
</body>
</html>1回答
好帮手慕夭夭
2019-05-19
你好同学,代码实现的方式只是看起来垂直对齐了,但是不标准,可以把文字设置大一些就明显了,如下:

根据要求,建议如下修改:

祝学习愉快 ,望采纳。
相似问题