Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
B
bdt_en
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢宇轩
bdt_en
Commits
6cb684ae
Commit
6cb684ae
authored
Jul 22, 2019
by
郭朴讴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
半导体样式
parent
0f547c08
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
Detail.cshtml
Views/Business/Detail.cshtml
+27
-0
Index - 复制.cshtml
Views/Business/Index - 复制.cshtml
+30
-0
No files found.
Views/Business/Detail.cshtml
View file @
6cb684ae
...
@@ -55,7 +55,34 @@
...
@@ -55,7 +55,34 @@
<script>
<script>
$(function () {
$(function () {
$("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>");
$("#tab3 p").wrap("<div style='height: 50px;overflow: hidden;'></div>");
$("#mainav li").eq(2).addClass("active");
$("#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>");
}
})
$(".zkbtn").click(function(event){
event.stopPropagation();
event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) {
$(this).html("收起")
}else{
$(this).html("展开")
}
})
})
})
</script>
</script>
}
}
\ No newline at end of file
Views/Business/Index - 复制.cshtml
View file @
6cb684ae
...
@@ -86,6 +86,12 @@
...
@@ -86,6 +86,12 @@
<script>
<script>
$(function () {
$(function () {
$("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>");
$("#tab3 p").wrap("<div style='height: 50px;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) {
...
@@ -117,6 +123,29 @@
...
@@ -117,6 +123,29 @@
})
})
$("#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>");
}
})
$(".zkbtn").click(function(event){
event.stopPropagation();
event.preventDefault();
$(this).parent().find("p").parent().toggleClass("tdiv");
if ($(this).parent().find("p").parent().hasClass("tdiv")) {
$(this).html("收起")
}else{
$(this).html("展开")
}
})
});
});
</script>
</script>
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment