Commit 1cff7321 authored by 郭朴讴's avatar 郭朴讴

半导体样式

parent e1821a5d
...@@ -1448,8 +1448,8 @@ ...@@ -1448,8 +1448,8 @@
width: 100%; width: 100%;
} }
.page-business .buslist .bus .txt { .page-business .buslist .bus .txt {
padding: 1.5rem 1.5rem 5rem; padding: 1.5rem 1.5rem 0 1.5rem;
height: 190px; /*height: 190px;*/
position: relative; position: relative;
} }
.page-business .buslist .bus .txt h3 { .page-business .buslist .bus .txt h3 {
......
This diff is collapsed.
...@@ -5,7 +5,14 @@ ...@@ -5,7 +5,14 @@
<div class="banner banner-contact banner-business"> <div class="banner banner-contact banner-business">
<h1>Investment Business</h1> <h1>Investment Business</h1>
</div> </div>
<style>
#tab2 .txt{
position: relative;
}
#tab2 .tdiv{
height: auto;
}
</style>
<div class="sub-nav"> <div class="sub-nav">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -160,6 +167,9 @@ ...@@ -160,6 +167,9 @@
<script> <script>
$(function () { $(function () {
$("#tab2 .txt p").wrap("<div class='tdiv' style='height: 100px;overflow: hidden;'></div>");
var url = $(location).attr('href'); var url = $(location).attr('href');
var oindex = url.indexOf("#"); var oindex = url.indexOf("#");
if (oindex > 0) { if (oindex > 0) {
...@@ -190,7 +200,16 @@ ...@@ -190,7 +200,16 @@
$(con).addClass("active").siblings().removeClass("active"); $(con).addClass("active").siblings().removeClass("active");
}) })
if ($("#tab2 .txt p").offset().height()>100) {
$("#tab2 .txt").after("<div class='zkbtn' style='position: absolute;right: 0;bottom: 0;'>展开</div>");
}
$(".zkbtn").click(function(){
$(this).parent().find("p").parent().toggleClass("tdiv");
$(this).html("收起");
})
}); });
</script> </script>
} }
\ No newline at end of file
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