In my project, I am trying to make the below css work in IE8 using selectivizr
thead>tr:first-child>th:last-child {
color: red;
}
tbody>tr:first-child>td:last-child {
color: red;
}
As described in Selectivizr website, I added the below code in "External Resources" of JSFiddle.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="https://github.com/keithclark/selectivizr/blob/master/selectivizr.js"></script>
<noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
<![endif]-->
Still I can't make first-child
and last-child
pseudo selectors work in IE8.
I am switching all the versions of IE into IE8 using the following code. (just for information).
<meta http-equiv="X-UA-Compatible" content="IE=8" >