请问老师,字母没有下划线的问题
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | <!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://img1.sycdn.imooc.com/climg//59c21bae000157fa01000059.jpg" alt = "" /> < span class = "one" >CSS层叠样式表</ span >< span class = "two" >(cascading style sheet)</ span > </ div > </ body > </ html > |
如图,g和y没有下划线
32
收起
正在回答
2回答
我在Chrome测试了你的代码,是没有的呀:
你可以在其他主流浏览器测试一下!
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧