各位老师能帮看下哪里还有误吗
来源:4-3 编程练习
一片片
2018-07-17 22:08:37
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文本样式</title>
<style type="text/css">
/*写出CSS样式*/
div {
text-align: center;
background-color: #eee;
}
.gray {
font-size: 2em;
line-height:5em;
}
#udline {
text-decoration: underline;
color: red;
text-transform: capitalize;
vertical-align: super;
}
</style>
</head>
<body>
<!--写出html代码-->
<div class="gray">
<img src="http://climg.mukewang.com/59c21bae000157fa01000059.jpg">
<span style="font-size:2em">CSS层叠样式表</span><span id="udline">cascading style sheets</span>
</div>
</body>
</html>1回答
妮可妮可妮_
2018-07-18

根据作业需求: vertical-align: super;垂直对齐文本的上标,建议用vertical-align:middle;来设置垂直居中,祝学习愉快~
相似问题