Commit 330bdcea authored by 郭朴讴's avatar 郭朴讴

半导体样式

parent 1ada0f24
......@@ -1520,7 +1520,7 @@
margin-bottom: 20px;
padding: 15px;
display: block;
height: 280px;
/*height: 280px;*/
}
.page-business .item001 .icon {
height: 130px;
......
This diff is collapsed.
......@@ -19,6 +19,9 @@
color: #999;
cursor: pointer;
}
#tab3 .item001{
position: relative;
}
</style>
<div class="sub-nav">
<div class="container">
......@@ -176,6 +179,7 @@
$(function () {
$("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>");
$("#tab3 p").wrap("<div style='height: 45px;overflow: hidden;'></div>");
var url = $(location).attr('href');
var oindex = url.indexOf("#");
......@@ -208,10 +212,16 @@
})
if ($("#tab2 .txt p").height()>100) {
$("#tab2 .txt").append("<div class='zkbtn'>展开</div>");
$("#tab2 .txt p").each(function(){
if ($(this).height()>100) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>");
}
})
$("#tab3 p").each(function(){
if ($(this).height()>45) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>");
}
})
$(".zkbtn").click(function(){
$(this).parent().find("p").parent().toggleClass("tdiv");
......
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