开发者

jquery table sorting and css fix for IE 8

开发者 https://www.devze.com 2023-03-15 00:06 出处:网络
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.

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消