close
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		body{
			counter-reset: section;
		}
		h1{
			counter-reset: subsection;
		}
		h1:before{
			counter-increment: section;
			content:'段落' counter(section) ':';
		}
		h2:before{
			counter-increment: subsection;
			content:counter(section) '-' counter(subsection) ':';
		}
	</style>
</head>
<body>
	<h1>水果</h1>
	<h2>蘋果</h2>
	<h2>香蕉</h2>
	<h2>芭樂</h2>

	<h1>季節</h1>
	<h2></h2>
	<h2></h2>
	<h2></h2>
	<h2></h2>
</body>
</html>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Jerry 的頭像
    Jerry

    Bug倉庫 // 程式日記

    Jerry 發表在 痞客邦 留言(0) 人氣()