3.2|3.2 practice(表格、nth-child(n))

3.2|3.2 practice(表格、nth-child(n))
文章图片
image.png

Document - 锐客网tr:nth-child(even){ background: rgba(0,0,255,0.1); }td{ width:50px; border-bottom: 1px solid #000; }tr:hover{ background: rgba(0,0,255,0.1); }
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3

Document - 锐客网div span:last-child{ background: #000; color: #fff; }div span:first-child{ background: #000; color: #fff; }1 2 3 4 5

    推荐阅读