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

半导体样式

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