请问实现效果对么

来源:4-3 编程练习

慕先生8971282

2019-08-21 21:52:40

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>文本样式</title>
        <style type="text/css">
           /*写出CSS样式*/
           div{
            font-size: 2em;
            line-height: 5em;
            background: #eee;
            text-align: center;
            font-family: "宋体";
           }
           img,span{
            vertical-align: middle;
           }
           .one{
            font-size: 2em;
           }
           .two{
            text-decoration: underline;
            color: red;
           }
        </style>
    </head>
    <body>
          <!--写出html代码-->
            <div>
               <img src="http://climg.mukewang.com/59c21bae000157fa01000059.jpg" />
               <span class="one">CSS层叠样式表</span>
               <span class="two">(Cascading Style Sheets)</span>
            </div>
    </body>
</html>


写回答

1回答

好帮手慕星星

2019-08-22

同学你好,

代码实现效果没有问题,很棒哦!

祝学习愉快!

0

0 学习 · 40143 问题

查看课程