Commit 7de88520 authored by 郭朴讴's avatar 郭朴讴

半导体样式

parent 5291bbe4
......@@ -12,6 +12,13 @@
#tab2 .tdiv{
height: auto!important;
}
#tab2 .zkbtn{
position: absolute;
right: 0;
bottom: 0;
color: #999;
cursor: pointer;
}
</style>
<div class="sub-nav">
<div class="container">
......@@ -203,12 +210,16 @@
if ($("#tab2 .txt p").height()>100) {
$("#tab2 .txt").after("<div class='zkbtn' style='position: absolute;right: 0;bottom: 0;'>展开</div>");
$("#tab2 .txt").append("<div class='zkbtn'>展开</div>");
}
$(".zkbtn").click(function(){
$(this).parent().find("p").parent().toggleClass("tdiv");
$(this).html("收起");
if ($(this).parent().find("p").parent().hasClass("tdiv")) {
$(this).html("收起")
}else{
$(this).html("展开")
}
})
});
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment