首頁 >後端開發 >php教程 >thinkphp和jquery隔行换色_PHP教程

thinkphp和jquery隔行换色_PHP教程

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-07-13 17:53:02817瀏覽

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