ITPub博客

首页 > 应用开发 > > 3-3编程问题

3-3编程问题

作者:apnic 时间:2019-10-17 13:38:21 0 删除 编辑

求教大神为什么第一行显示不出颜色?

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>选择器的使用</title>

    <style type="text/css">

    .myclass{

     color: red;

    }

    #blue{

     color: blue;

    }

    #green{

     color: green;

    }

    p{

     color: purple;

    }

    </style>

</head>

<body>

<h3 class="red">我是标题3里面的文字</h3>

<div id="blue">我是div1里面的文字</div>

<div id="green">我是div2里面的文字</div>

<p>我是P里面的文字</p>

</body>

</html>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1282/viewspace-3155275/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    121
  • 访问量
    792