请问老师,字母没有下划线的问题
来源:4-3 编程练习
Coolyang_
2018-02-06 22:33:41
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文本样式</title>
<style type="text/css">
/*写出CSS样式*/
div{
text-align:center;
font-size:2em;
background-color:#eee;
line-height:5em;
}
img{vertical-align:-5px;}
.one{
font-size:2em;
}
.two{
color:red;
text-decoration:underline;
vertical-align: 10px;
text-transform:capitalize;
}
</style>
</head>
<body>
<!--写出html代码-->
<div>
<img src="http://climg.mukewang.com/59c21bae000157fa01000059.jpg" alt="" />
<span class="one">CSS层叠样式表</span><span class="two">(cascading style sheet)</span>
</div>
</body>
</html>
如图,g和y没有下划线
2回答
我在Chrome测试了你的代码,是没有的呀:

你可以在其他主流浏览器测试一下!
bbbboom
2018-02-07
是没有问题的
相似问题