Commit 50b70b90 authored by 郭朴讴's avatar 郭朴讴

半导体样式

parent dde0a92d
...@@ -65,13 +65,13 @@ ...@@ -65,13 +65,13 @@
$("#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) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>"); $(this).parent().parent().append("<div class='zkbtn'>open</div>");
} }
}) })
$("#tab3 p").each(function(){ $("#tab3 p").each(function(){
console.log($(this).height()); 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'>open</div>");
} }
}) })
}) })
...@@ -81,9 +81,9 @@ ...@@ -81,9 +81,9 @@
event.preventDefault(); event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv"); $(this).parent().find("p").parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) { if ($(this).parent().find("p").parent().hasClass("tdiv")) {
$(this).html("收起") $(this).html("close")
}else{ }else{
$(this).html("展开") $(this).html("open")
} }
}) })
}) })
......
...@@ -127,13 +127,13 @@ ...@@ -127,13 +127,13 @@
$("#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) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>"); $(this).parent().parent().append("<div class='zkbtn'>open</div>");
} }
}) })
$("#tab3 p").each(function(){ $("#tab3 p").each(function(){
console.log($(this).height()); 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'>open</div>");
} }
}) })
}) })
...@@ -143,9 +143,9 @@ ...@@ -143,9 +143,9 @@
event.preventDefault(); event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv"); $(this).parent().find("p").parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) { if ($(this).parent().find("p").parent().hasClass("tdiv")) {
$(this).html("收起") $(this).html("close")
}else{ }else{
$(this).html("展开") $(this).html("open")
} }
}) })
......
...@@ -217,13 +217,13 @@ ...@@ -217,13 +217,13 @@
$("#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) {
$(this).parent().parent().append("<div class='zkbtn'>展开</div>"); $(this).parent().parent().append("<div class='zkbtn'>open</div>");
} }
}) })
$("#tab3 p").each(function(){ $("#tab3 p").each(function(){
console.log($(this).height()); 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'>open</div>");
} }
}) })
}) })
...@@ -233,9 +233,9 @@ ...@@ -233,9 +233,9 @@
event.preventDefault(); event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv"); $(this).parent().find("p").parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) { if ($(this).parent().find("p").parent().hasClass("tdiv")) {
$(this).html("收起") $(this).html("close")
}else{ }else{
$(this).html("展开") $(this).html("open")
} }
}) })
}); });
......
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