我在某个页面有一个URL有katoder的IE7有问题,http://www.mywebsite.com/Kalde_katoder.asp如何使用jquery在条件语句中添加if语句的类?
我想添加一个类ie7到id系统。
我试过这个,但它不起作用。
任何人都可以指向正确的方向吗?
在此先感谢。
<!--[if IE 7]>
<script type="text/javascript">
$(document).ready(function() {
if(location.pathname.indexOf('katoder') > 0){
$('#system').addClass('ie7');
}
});
</script>
<![endif]-->