Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> body :nth-last-child(odd){ background-color:yellow; font-size:25px; } body :nth-last-child(even){ background-color:crimson; font-size:25px; } </style> </head> <body> <p>- Lập Trình Web 01</p> <p>- Lập Trình Web 02</p> <p>- Lập Trình Web 03</p> <p>- Lập Trình Web 04</p> <p>- Lập Trình Web 05</p> <p>- Lập Trình Web 06</p> <p>- Lập Trình Web 07</p> <p>- Lập Trình Web 08</p> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> body :nth-last-child(odd){ background-color:yellow; font-size:25px; } body :nth-last-child(even){ background-color:crimson; font-size:25px; } </style> </head> <body> <p>- Lập Trình Web 01</p> <p>- Lập Trình Web 02</p> <p>- Lập Trình Web 03</p> <p>- Lập Trình Web 04</p> <p>- Lập Trình Web 05</p> <p>- Lập Trình Web 06</p> <p>- Lập Trình Web 07</p> <p>- Lập Trình Web 08</p> </body> </html>