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

半导体样式

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