From 356bca769b10cadbf3f13230757de05ae9af66a6 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Wed, 14 May 2014 12:50:27 +0800 Subject: [PATCH] edit app.css/counter --- css/app.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/css/app.css b/css/app.css index 3d56034..51d57f1 100644 --- a/css/app.css +++ b/css/app.css @@ -114,6 +114,8 @@ body { line-height:1.3rem; /* border: 1px solid black; */ + + counter-reset: section; } @media (min-width: 40rem) { @@ -167,6 +169,12 @@ body { text-align: left; border-top: 2px solid #666; + + counter-increment: section; +} + +#content h2:before { + content: counters(section, ".") " "; } #content h3 {