当用户点击蓝色链接时,也可以展开下面的文字

master
csk 9 years ago
parent b855ce7300
commit 0288a3b3e5

@ -19,6 +19,7 @@ table.CruiseTable th { background:#9d9d9d; color:#fff; font-size:15px; text-shad
table.CruiseTable td { font-size:14px; padding:10px 0 10px 10px; }
table.CruiseTable tr.BgWhite { background-color:#fff; }
table.CruiseTable tr.BgWhite td.wishlist, table.CruiseTable tr.BgGrey td.wishlist { text-align:center;}
td.wishlist img,.arrowup{cursor: pointer;}
table.CruiseTable tr.BgWhiteBottom td{ background-color:#fff; border-bottom:1px solid #e0e0e0; font-size:18px; font-family:Trebuchet MS;}
table.CruiseTable tr.BgGrey { background:#f7f6f6; }
table.CruiseTable tr.BgGrey td.date input, table.CruiseTable tr.BgWhite td.date input { border: 1px solid #d1d1d1; background: url(/pic/calendar.png) no-repeat 98% 6px #fff; padding: 5px 5px; width: 100%; border-radius: 4px; color: #555; font-family: Verdana, Geneva, sans-serif; font-size:14px; }
@ -29,7 +30,7 @@ table.CruiseTable tr.BgBottom td.TravelerNumber select { text-align: center; bor
table.CruiseTable tr.BgBottom td.TravelerNumber {font-family:Trebuchet MS;}
.traveldetail { color:#a31022; font-size:13px; margin-left:15px;}
table.CruiseTable tr.BgGreyCenter td{ background:#f7f6f6; border-bottom:1px solid #e0e0e0; text-align:center;}
table.CruiseTable td.TourName { color:#1f60a3; }
table.CruiseTable td.TourName { color:#1f60a3; cursor: pointer;}
table.CruiseTable td .Price { color:#a31022;}
table.CruiseTable tr.BottomGrey td{ background:#f7f6f6; padding: 20px; }
table.CruiseTable tr.PriceBottom td{ background:#f7f6f6; text-align:center; font-size:18px;border-bottom:1px solid #e0e0e0; font-family:Trebuchet MS; }

@ -11,6 +11,17 @@ var flg=true;
}
});
$(".Father_tr .TourName").click(function(){
if(flg){
$(this).parents(".Father_tr").next().show();
$(this).parents(".Father_tr").find(".wishlist img").attr("src","/image/arrow-up.png");
flg=false;
}else{
$(this).parents(".Father_tr").next().hide();
$(this).parents(".Father_tr").find(".wishlist img").attr("src","/image/arrow-down.png");
flg=true;
}
});
$(".arrowup img").click(function(){
$(this).parents(".Son_tr").hide();
$(this).parents(".Son_tr").prev(".Father_tr").find(".wishlist img").attr("src","/image/arrow-down.png");

Loading…
Cancel
Save