john568300

使用内部样式:在head标签中加入style标签,在style标签内容处写样式,
元素名{属性名:属性值;属性名:属性值;

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>使用内部样式</title>
    <!--使用内部样式:在head标签中加入style标签,在style标签内容处写样式,
    元素名{属性名:属性值;属性名:属性值;}-->
    <style>
        p{
            color: red;
            font-size: 20px;
        }
        div{
            color: blue;
            font-family: "楷体";
            font-size: 30;
        }
    </style>
</head>
<body>
    <strong>
        <p>乘风破浪一</p>
        <p>乘风破浪二</p>
        <p>乘风破浪三</p>
       <h2>
           <div>徐大浪</div>
       </h2>
    </strong>
</body>
</html>

  

分类:

技术点:

相关文章:

  • 2021-12-10
  • 2021-12-10
  • 2021-12-10
  • 2021-12-07
  • 2021-04-17
  • 2021-12-10
  • 2021-12-10
  • 2021-05-26
猜你喜欢
  • 2021-12-10
  • 2021-12-10
  • 2021-12-10
  • 2021-11-05
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案