示例工程 07-backgrounds-borders-shadows

07-backgrounds-borders-shadows/demo-02-shadows/index.html

html · 0.7 KB

运行:边框、轮廓与阴影

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>边框、轮廓与阴影</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <h1>边框、轮廓与阴影</h1>
    <div class="grid">
      <div class="box border"><strong>border</strong><span>占布局,可圆角</span></div>
      <div class="box outline"><strong>outline</strong><span>不占布局,不随圆角</span></div>
      <div class="box shadow"><strong>box-shadow</strong><span>可多层、可内阴影</span></div>
      <div class="box inset"><strong>inset shadow</strong><span>内阴影做高光或凹陷</span></div>
    </div>
  </body>
</html>