最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

實(shí)用的Jquery選項(xiàng)卡TAB示例代碼

 更新時(shí)間:2013年08月28日 14:53:01   作者:  
Jquery選項(xiàng)卡想必大家并不陌生,本文為大家介紹個(gè)比較實(shí)用的jquery TAB選項(xiàng)卡,喜歡的朋友可以學(xué)習(xí)下
復(fù)制代碼 代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>實(shí)用的Jquery選項(xiàng)卡</title>
<script language="javascript" type="text/javascript" src="jquery-1.9.1.min.js"></script>
<style type="text/css">
.order_box .stitle {
width: 825px;
clear: right;
height: 27px;
border-bottom: 2px solid #A10000;
}
.order_box .stitle .close {
width: 80px;
height: 18px;
border-top: 1px solid #dedede;
border-left: 1px solid #dedede;
border-right: 1px solid #dedede;
background: #f1f1f1;
color: #000;
text-align: center;
float: left;
margin-right: 5px;
padding-top: 8px;
}
.order_box .stitle .open {
width: 82px;
height: 20px;
background: #A10000;
color: #fff;
text-align: center;
float: left;
margin-right: 5px;
padding-top: 8px;
overflow: hidden;
}
.order_box ul li {
cursor: pointer;
display: list-item;
list-style:none;
}
</style>
<script type="text/javascript">
//選項(xiàng)卡切換
$(function () {
$(".stitle li").click(function () {
var index_tab = $(this).parent().children().index($(this)); //選項(xiàng)卡的索引值
$(this).parent().find(".open").removeClass("open").addClass("close"); //選項(xiàng)卡背景處理
$(this).removeClass("close").addClass("open");
var content_obj = $(".cntorder") //內(nèi)容節(jié)點(diǎn)
content_obj.hide();
content_obj.eq(index_tab).show();
});
});
</script>
</head>
<body>
<div class="order_box">
<div class="stitle">
<ul>
<li class="open">進(jìn)行中</li>
<li class="close">已完成</li>
<li class="close">無(wú)效</li>
</ul>
</div>
<div class="cntorder" >tab1</div>
<div class="cntorder" style="display: none;">tab2</div>
<div class="cntorder" style="display: none;">tab3</div>
</div>
</body>
</html>

相關(guān)文章

最新評(píng)論

额济纳旗| 六盘水市| 元氏县| 武冈市| 蕉岭县| 平凉市| 镇巴县| 安溪县| 永善县| 正蓝旗| 封丘县| 民丰县| 财经| 鄂伦春自治旗| 康保县| 穆棱市| 湘潭市| 周至县| 鲁山县| 西平县| 思茅市| 榆林市| 康定县| 宾川县| 西华县| 三台县| 斗六市| 涿州市| 高碑店市| 永善县| 泰来县| 桑日县| 襄垣县| 德清县| 都安| 阜阳市| 沿河| 星座| 宁武县| 肥乡县| 县级市|