首页 >后端开发 >php教程 >thinkphp和jquery隔行换色_PHP教程

thinkphp和jquery隔行换色_PHP教程

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-07-13 17:53:02818浏览

js部分
 


$("#left_bottom   li:even ").addClass("bg");
$("#left_bottom   li:odd ").addClass("bg1");

});


html代码
 


          


css
.bg{background:url(../images/cy_07.gif) no-repeat left top;}
.bg1{background:url(../images/cy_09.gif) no-repeat left top;}
 作者:nycqwert

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478056.htmlTechArticlejs部分 script language=javascript type=text/javascript src=__PUBLIC__/js/jquery.js /script Script language=JavaScript type=text/javascript $(document).ready(function () { $(#left...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn