首页htmlheaderPage Widget - 如何创建全宽标题...

Page Widget - 如何创建全宽标题...

我们想知道如何创建全宽标题。...

<!DOCTYPE html>
<html lang="en">
<head>
<style type="text/css">
body {
  counter-reset: section;
}

h1 {
  counter-reset: category;
}

h1:before {
  counter-increment: section;
  content: "Section " counter(section) ". ";
}

h2:before {
  counter-increment: category;
  content: counter(section) "." counter(category) " ";
}
</style>
</head>
<body>
  <h1>Tutorials</h1>
  <h2>HTML Tutorial</h2>
  <h2>CSS Tutorial</h2>
  <h1>References</h1>
  <h2>HTML Tags</h2>
  <h2>CSS Properties</h2>
  <p>
    <strong>Note:</strong> Internet Explorer 7 and earlier versions don't
    support the
    <code>counter-increment</code>
    property. IE8 supports this property only if a
    <code>&lt;!DOCTYPE&gt;</code>
    is specified.
  </p>
</body>
</html>