Tablesorter zebra doesnt stripe till sort

前端 未结 3 740
青春惊慌失措
青春惊慌失措 2021-01-18 12:59

I have my tables and they are great I can sort them and it works wonderfully except that they don\'t do the zebra striping until I sort them for the first time. My understa

3条回答
  •  耶瑟儿~
    2021-01-18 13:40

    With most browsers supporting CSS3, you don't really need to use the zebra widget anymore, unless you plan on filtering rows (see this demo).

    Otherwise, try css that looks something like this:

    table tbody > tr:nth-child(odd) > td,
    table tbody > tr:nth-child(odd) > th {
        background-color: #f9f9f9;
    }
    

提交回复
热议问题