首页htmlheaderPage Widget - 如何创建标题样式

Page Widget - 如何创建标题样式

我们想知道如何创建标题样式。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {
  background: #ccc;
}

.tagline {
  width: 60px;
  margin: 5px;
}

.tagline h1 {
  color: #fff;
  background: #000;
  padding: 4px 10px;
  display: inline-block;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
}
</style>
</head>
<body>
  <div class="tagline">
    <h1>Oh</h1>
  </div>
</body>
</html>