Make alternating CSS table row style work in Internet Explorer

后端 未结 3 989
夕颜
夕颜 2020-12-09 11:35

I use this CSS code to display a database output in rows where the colors repeat in every 2nd row

tbody tr:nth-child(2n) td, tbody tr.even td {  
    backgro         


        
3条回答
  •  余生分开走
    2020-12-09 12:02

    Which version of IE are you using? the :nth-child() CSS won't work in old versions of IE.

    IE6, IE7, IE8 Fail

    IE9 (works)

提交回复
热议问题