项目简介展开更多信息不超过一定内容不显示
This commit is contained in:
parent
11d83a863a
commit
86ef3e680a
|
@ -182,12 +182,12 @@
|
||||||
<div class="project_intro">
|
<div class="project_intro">
|
||||||
<div id="course_description" class="course_description">
|
<div id="course_description" class="course_description">
|
||||||
<h4 ><%= l(:label_project_overview)%>:</h4>
|
<h4 ><%= l(:label_project_overview)%>:</h4>
|
||||||
<div id="course_description_content break_word">
|
<div id="course_description_content" class="break_word">
|
||||||
<%= textilizable(@project.description) if @project.description && !@project.description.blank? %>
|
<%= textilizable(@project.description) if @project.description && !@project.description.blank? %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lg-foot" id="lg-foot" onclick="show_more_msg();">
|
<div class="lg-foot" id="lg-foot" onclick="show_more_msg();">
|
||||||
<label id="expend_more_information" value="<%= l(:label_expend_information)%>"><%= l(:label_expend_information)%></label>
|
<label id="expend_more_information" value="show_more"><%= l(:label_expend_information)%></label>
|
||||||
<span class="g-arr-down">
|
<span class="g-arr-down">
|
||||||
<img id="arrow" src="/images/jiantou.jpg" width="12" height="6" />
|
<img id="arrow" src="/images/jiantou.jpg" width="12" height="6" />
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -47,14 +47,14 @@ function show_more_msg() {
|
||||||
var information = $("#expend_more_information");
|
var information = $("#expend_more_information");
|
||||||
var arrow = $("#arrow");
|
var arrow = $("#arrow");
|
||||||
var val = information.attr("value");
|
var val = information.attr("value");
|
||||||
if (val == "展开更多信息") {
|
if (val == "show_more") {
|
||||||
$("#expend_more_information").text("收起描述信息");
|
$("#expend_more_information").text("收起描述信息");
|
||||||
information.attr("value", "收起描述信息");
|
information.attr("value", "hide_more");
|
||||||
arrow.attr("src", "/images/jiantouup.jpg")
|
arrow.attr("src", "/images/jiantouup.jpg")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#expend_more_information").text("展开更多信息");
|
$("#expend_more_information").text("展开更多信息");
|
||||||
information.attr("value", "展开更多信息");
|
information.attr("value", "show_more");
|
||||||
arrow.attr("src", "/images/jiantou.jpg")
|
arrow.attr("src", "/images/jiantou.jpg")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ a:hover.subnav_green{ background:#14ad5a;}
|
||||||
.project_intro{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; color:#6d6d6d; line-height:1.9;}
|
.project_intro{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; color:#6d6d6d; line-height:1.9;}
|
||||||
.course_description{max-height: 112px;overflow:hidden; word-break: break-all;word-wrap: break-word;}
|
.course_description{max-height: 112px;overflow:hidden; word-break: break-all;word-wrap: break-word;}
|
||||||
.course_description_none{max-height: none;}
|
.course_description_none{max-height: none;}
|
||||||
.lg-foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:220px; height:23px; cursor:pointer;}
|
.lg-foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:220px; height:23px; cursor:pointer;display: none;}
|
||||||
.lg-foot:hover{ color:#787b7e; border:1px solid #d4d4d4;}
|
.lg-foot:hover{ color:#787b7e; border:1px solid #d4d4d4;}
|
||||||
/****标签(和资源库的tag样式一致)***/
|
/****标签(和资源库的tag样式一致)***/
|
||||||
.project_Label{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; margin-bottom:10px;}
|
.project_Label{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; margin-bottom:10px;}
|
||||||
|
|
Loading…
Reference in New Issue