021 — Exercice HTML 021

Voir le code source

021牌匾设计练习.html

Voir le résultat ↗
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>牌匾设计</title>
    <style>
      #d1 {
        margin: 20px auto;
        width: 800px;
        height: 100px;
        border: 20px outset #ff0000;
        padding: 20px;
      }
      .d2 {
        margin: 20px auto;
      }
      .s1 {
        font-style: italic;
        font-weight: bold;
        font-size: 70px;
        line-height: 1.5;
        font-family: "隶书";
        margin: 0;
        background-color: antiquewhite;
      }
      body {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <div id="d1">
      <p class="s1">海纳百川,有容乃大</p>
    </div>
  </body>
</html>