<!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=gb2312" />
<title>折叠与展开jquery代码</title>
<script src="http://www.kuantoo.com/com/js/tingyun.js"></script>
<script>
$(document).ready(function() {
$("a.ckmore").toggle(function(){
var id = $(this).parents(".gdmore").attr("id");
$(this).css({'background':'url(http://www.kuantoo.com/com/imgs/xiala2.png) no-repeat right center'})
$("#"+id).find(".zzjj").css({'height':'auto'});
},function(){
var id = $(this).parents(".gdmore").attr("id");
$("#"+id).find(".zzjj").css({'height':'120px'});
$(this).css({'background':'url(http://www.kuantoo.com/com/imgs/xiala1.png) no-repeat right center'});
})
});
</script>
</head>
<body>
<style type="text/css">
/**公用样式*/
html, body, div, dl, dd, dt, ul, ol, li, a, i, form, input, p ,h1 ,select { margin:0; padding:0; font-size:12px; font-family:"微软雅黑",Arial,"Microsoft YaHei"}
a { display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline; text-decoration:none; cursor:pointer; color:#2d2e2d}
i { display:-moz-inline-stack; display:inline-block; font-style:normal}
input[type=button], input[type=submit], input[type=reset] { -webkit-appearance:none}
textarea { resize:none}
ul, ol { list-style:none}
:focus { outline:none}
img { border:0px none}
select, input ,textarea { vertical-align:middle; border:#ccc solid 1px;}
span, font, b{ display:-moz-inline-stack; display:inline-block;}
table { table-layout:fixed; border-collapse:collapse; height:auto;}
b{ font-weight:normal;}
/* 工具样式 */
.fl { float:left}
.fr { float:right}
.clear { clear:both}
.psa { position:absolute}
.psr { position:relative}
.psf { position:fixed}
.vam { vertical-align:middle}
.vat { vertical-align:top}
.cp { cursor:pointer}
.db { display:block}
.di { display:inline-block}
.hide { display:none}
.tal { text-align:left}
.tac { text-align:center}
.tar { text-align:right}
.oh { overflow:hidden}
.oxs { overflow:hidden; overflow-x:scroll}
.oys { overflow:hidden; overflow-y:scroll}
.ha { height:auto; overflow:auto}
.ml10 { margin-left:10px}
.ml15 { margin-left:15px}
.ml20 { margin-left:20px}
.mt10 { margin-top:10px}
.mt15 { margin-top:15px}
.mt20 { margin-top:20px}
.mr10 { margin-right:10px}
.mr15 { margin-right:15px}
.mr20 { margin-right:20px}
.marginauto { margin:0 auto;}
.width1200 { 1200px; }
.width1000 { 1000px; }
.seldizhi{border:1px solid #c8c8c8;height:38px;840px;margin-top:30px;}
.seldizhi li{float:left;}
.seldizhi a{font-size:14px;color:#787878;line-height:38px;70px; background:url(../imgs/febgersde.png) no-repeat left center;}
.seldizhi a:hover{color:#fff; background-color:#3fc3f2;}
.seldizhi a.curr{color:#fff; background-color:#3fc3f2;}
.seldizhi li:first-child a{ background-image:none;}
.leftzp dl{340px;margin-top:60px;}
.leftzp dt{font-size:24px;color:#00a6f3;}
.leftzp .gwzz{font-size:18px;color:#323232;margin:10px 0 6px;}
.leftzp p{font-size:14px;color:#636363;line-height:30px;}
.leftzp .ckmore{color:#9e9e9e;font-size:14px; background:url(http://www.kuantoo.com/com/imgs/xiala1.png) no-repeat right center;padding-right:20px;}
.leftzp dd.ddtop{margin-top:8px;}
.leftzp dd.zzjj{height:120px;}
.leftzp dd.ljbm span{200px;height:1px; background:#d7d7d7;}
.leftzp dd.ljbm input{90px;height:30px;font-size:14px;color:#fff; background:#3fc3f2;border:0 none;margin-left:30px;border-radius:2px; cursor:pointer}
</style>
<div class="leftzp fl">
<dl class="gdmore" id="gdmore1">
<dt>前台文员</dt>
<dd class="gwzz">岗位职责:</dd>
<dd class="zzjj oh">
<p>1、及时、准确接听/转接电话,记录留言并及时转达;</p>
<p>2、接待来访客人并及时准确通知被访人员;</p>
<p>3、收发公司邮件、报刊、传真和物品。并做好登记管理以及专递工作;</p>
<p>3、收发公司邮件、报刊、传真和物品。并做好登记管理以及专递工作;</p>
<p>3、收发公司邮件、报刊、传真和物品。并做好登记管理以及专递工作;</p>
</dd>
<dd class="ddtop"><a class="ckmore">查看更多</a></dd>
<dd class="ljbm"><span></span><input type="button" name="baom" value="立即报名"></dd>
</dl>
<dl class="gdmore" id="gdmore2">
<dt>前台文员</dt>
<dd class="gwzz">岗位职责:</dd>
<dd class="zzjj oh">
<p>1、及时、准确接听/转接电话,记录留言并及时转达;</p>
<p>2、接待来访客人并及时准确通知被访人员;</p>
<p>3、收发公司邮件、报刊、传真和物品。并做好登记管理以及专递工作;</p>
<p>3、收发公司邮件、报刊、传真和物品。并做好登记管理以及专递工作;</p>
<p>3、收发公司邮件、报刊、传真和物品。并做好登记管理以及专递工作;</p>
</dd>
<dd class="ddtop"><a class="ckmore">查看更多</a></dd>
<dd class="ljbm"><span></span><input type="button" name="baom" value="立即报名"></dd>
</dl>
</div>
</body>
</html>