執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> p { counter-increment: myIndex; } p::before { content:counter(myIndex); } </style> </head> <body> <p>First make a variable (myIndex) and make it increase every time a p element occurs.</p> <p>Then insert the counter in front of all p elements</p> </body> </html>