51help TIY
码:
<!DOCTYPE html> <html> <head> <style> p:nth-last-child(3n+0) { background:#ff0000; } </style> </head> <body> <h1>这是标题</h1> <p>。</p> <p>。</p> <p>。</p> <p>。</p> <p>。</p> <p>。</p> <p>。</p> <p>。</p> <p>。</p> </body> </html>
查看结果: