您可以幫我用自動編號使用css來表示我的'標題標題'和'子標題'。因爲我需要有標題只有H1,H2,不與醇,UL,李...如何使用css實現標題的自動編號
這裏是我的代碼:
<style>
h1,h2 { display: list-item; list-style-position: inside; }
</style>
<div id="page">
<h1>Heading Title</h1>
<h2>Subheading Title</h2>
<h2>Subheading Title</h2>
<h1>Heading Title</h1>
<h2>Subheading Title</h2>
<h1>Heading Title</h1>
</div>
在此先感謝
請出示你嘗試過這麼遠嗎?你做了多少研究。請添加你的CSS以及 – Lucian
@Lucian我已經添加了我的CSS,我已經嘗試過了。 – vignesh