Commit 3ad7b125 authored by 郭朴讴's avatar 郭朴讴

半导体

parent 5c871902
...@@ -1328,6 +1328,9 @@ ...@@ -1328,6 +1328,9 @@
.page-teams .item p { .page-teams .item p {
padding-top: 0; padding-top: 0;
font-size: 14px; font-size: 14px;
line-height: 23px!important;
height: 184px;
overflow: hidden;
} }
.banner-business { .banner-business {
background-image: url(../img/banner/banner_business.jpg); background-image: url(../img/banner/banner_business.jpg);
......
This diff is collapsed.
...@@ -227,7 +227,9 @@ ...@@ -227,7 +227,9 @@
$(function () { $(function () {
if (IsPC()) { if (IsPC()) {
$("#tab3 .top .intro").wrap("<div style='height: 353px;overflow: hidden;'></div>"); $("#tab3 .top .intro").wrap("<div style='height: 353px;overflow: hidden;'></div>");
$("#tab3 .row .text p").wrap("<div style='height: 193px;overflow: hidden;'></div>"); // $("#tab3 .row .text p").wrap("<div style='height: 193px;overflow: hidden;'></div>");
var ptxt = $("#tab3 .row .text p").text();
$("#tab3 .row .text p").html("<a style='display: block;'>"+ptxt+"</a>");
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
if (userAgent.indexOf("Safari") > -1) { if (userAgent.indexOf("Safari") > -1) {
console.log(userAgent) console.log(userAgent)
...@@ -274,8 +276,8 @@ ...@@ -274,8 +276,8 @@
}else{ }else{
$("#tab3 .top .intro").parent().parent().parent().find(".zkbtn").html("open"); $("#tab3 .top .intro").parent().parent().parent().find(".zkbtn").html("open");
} }
$("#tab3 .row .text p").each(function(){ $("#tab3 .row .text p a").each(function(){
if ($(this).height()>193) { if ($(this).height()>184) {
$(this).parent().parent().append("<div class='zkbtn1'>open</div>"); $(this).parent().parent().append("<div class='zkbtn1'>open</div>");
} }
if ($(this).parent().hasClass("tdiv")) { if ($(this).parent().hasClass("tdiv")) {
...@@ -299,9 +301,9 @@ ...@@ -299,9 +301,9 @@
$(".zkbtn1").click(function(event){ $(".zkbtn1").click(function(event){
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv"); $(this).parent().find("a").parent().toggleClass("tdiv");
$(this).parent().parent().toggleClass("tdiv"); $(this).parent().parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) { if ($(this).parent().find("a").parent().hasClass("tdiv")) {
$(this).html("close") $(this).html("close")
}else{ }else{
$(this).html("open") $(this).html("open")
......
...@@ -51,7 +51,9 @@ ...@@ -51,7 +51,9 @@
$(function () { $(function () {
if (IsPC()) { if (IsPC()) {
$("#tab3 .top .intro").wrap("<div style='height: 353px;overflow: hidden;'></div>"); $("#tab3 .top .intro").wrap("<div style='height: 353px;overflow: hidden;'></div>");
$("#tab3 .row .text p").wrap("<div style='height: 193px;overflow: hidden;'></div>"); // $("#tab3 .row .text p").wrap("<div style='height: 193px;overflow: hidden;'></div>");
var ptxt = $("#tab3 .row .text p").text();
$("#tab3 .row .text p").html("<a style='display: block;'>"+ptxt+"</a>");
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
if (userAgent.indexOf("Safari") > -1) { if (userAgent.indexOf("Safari") > -1) {
console.log(userAgent) console.log(userAgent)
...@@ -98,8 +100,8 @@ ...@@ -98,8 +100,8 @@
}else{ }else{
$("#tab3 .top .intro").parent().parent().parent().find(".zkbtn").html("open"); $("#tab3 .top .intro").parent().parent().parent().find(".zkbtn").html("open");
} }
$("#tab3 .row .text p").each(function(){ $("#tab3 .row .text p a").each(function(){
if ($(this).height()>193) { if ($(this).height()>184) {
$(this).parent().parent().append("<div class='zkbtn1'>open</div>"); $(this).parent().parent().append("<div class='zkbtn1'>open</div>");
} }
if ($(this).parent().hasClass("tdiv")) { if ($(this).parent().hasClass("tdiv")) {
...@@ -123,9 +125,9 @@ ...@@ -123,9 +125,9 @@
$(".zkbtn1").click(function(event){ $(".zkbtn1").click(function(event){
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv"); $(this).parent().find("a").parent().toggleClass("tdiv");
$(this).parent().parent().toggleClass("tdiv"); $(this).parent().parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) { if ($(this).parent().find("a").parent().hasClass("tdiv")) {
$(this).html("close") $(this).html("close")
}else{ }else{
$(this).html("open") $(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