I'm attempting to make this page compatible with IE 8. The jquery right now allows for classes to be assigned on odds and evens, but doesn't se开发者_JS百科em to be working on IE 8.
Here is the site: http://www.videogameinfo.net/pokedex
and here is the jquery: http://www.videogameinfo.net/settings/jquery.tablesorter.js
the css does this in order to tile the backgrounds consistently.
tr:nth-child(even) {background: #0E0439}
tr:nth-child(odd) {background: #272E81}
:nth-child()
is a CSS3 selector and is not supported in IE8 and below.
To get the same effect, you will need to use some javascript/jQuery: http://api.jquery.com/nth-child-selector/
精彩评论