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

半导体样式

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