Commit dde0a92d authored by 郭朴讴's avatar 郭朴讴

半导体样式

parent 6cb684ae
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
$("#mainav li").eq(2).addClass("active"); $("#mainav li").eq(2).addClass("active");
setTimeout(function(){
$("#tab2 .txt p").each(function(){ $("#tab2 .txt p").each(function(){
console.log($(this).height()); console.log($(this).height());
if ($(this).height()>100) { if ($(this).height()>100) {
...@@ -68,10 +69,12 @@ ...@@ -68,10 +69,12 @@
} }
}) })
$("#tab3 p").each(function(){ $("#tab3 p").each(function(){
console.log($(this).height());
if ($(this).height()>50) { if ($(this).height()>50) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>"); $(this).parent().parent().append("<div class='zkbtn'>展开</div>");
} }
}) })
})
$(".zkbtn").click(function(event){ $(".zkbtn").click(function(event){
event.stopPropagation(); event.stopPropagation();
......
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
}) })
setTimeout(function(){
$("#tab2 .txt p").each(function(){ $("#tab2 .txt p").each(function(){
console.log($(this).height()); console.log($(this).height());
if ($(this).height()>100) { if ($(this).height()>100) {
...@@ -130,10 +131,12 @@ ...@@ -130,10 +131,12 @@
} }
}) })
$("#tab3 p").each(function(){ $("#tab3 p").each(function(){
console.log($(this).height());
if ($(this).height()>50) { if ($(this).height()>50) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>"); $(this).parent().parent().append("<div class='zkbtn'>展开</div>");
} }
}) })
})
$(".zkbtn").click(function(event){ $(".zkbtn").click(function(event){
event.stopPropagation(); event.stopPropagation();
......
...@@ -213,6 +213,7 @@ ...@@ -213,6 +213,7 @@
}) })
setTimeout(function(){
$("#tab2 .txt p").each(function(){ $("#tab2 .txt p").each(function(){
console.log($(this).height()); console.log($(this).height());
if ($(this).height()>100) { if ($(this).height()>100) {
...@@ -220,10 +221,12 @@ ...@@ -220,10 +221,12 @@
} }
}) })
$("#tab3 p").each(function(){ $("#tab3 p").each(function(){
console.log($(this).height());
if ($(this).height()>50) { if ($(this).height()>50) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>"); $(this).parent().parent().append("<div class='zkbtn'>展开</div>");
} }
}) })
})
$(".zkbtn").click(function(event){ $(".zkbtn").click(function(event){
event.stopPropagation(); event.stopPropagation();
......
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