运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 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>