Home
HTML
HTML
Tryit: HTML
运行 ❯
×
Change Orientation
Change Theme, Dark/Light
条纹表格
对于斑马条纹表,使用 nth-child() 选择器并为所有偶数(或奇数)表行添加背景颜色:
First Name
Last Name
Points
Peter
Griffin
$100
Lois
Griffin
$150
Joe
Swanson
$300
Cleveland
Brown
$250