项目超过的部分用“展示更多信息”拉开

memcached_alan
huang 11 years ago
parent c36db9fd63
commit 29655838f0

@ -51,10 +51,21 @@
} }
} }
function submitSerch() // 项目描述超过展开
{ $(function(){
if(regexName()){$("#project_search_form").submit();} $(".subNav").click(function(){
} $(this).toggleClass("currentDd").siblings(".subNav").removeClass("currentDd")
$(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt")
// 修改数字控制速度, slideUp(500)控制卷起速度
$(this).next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
})
})
function show_more_msg()
{$("#course_description").toggleClass("course_description_none");}
</script> </script>
<%= form_tag(projects_search_path, :method => :get, :id => "project_search_form") do %> <%= form_tag(projects_search_path, :method => :get, :id => "project_search_form") do %>
<%= text_field_tag 'name', params[:name], :size => 20, :onkeyup => "regexName();", :style => "float:left" %> <%= text_field_tag 'name', params[:name], :size => 20, :onkeyup => "regexName();", :style => "float:left" %>
@ -179,12 +190,14 @@
</ul> </ul>
</div><!--项目侧导航 end--> </div><!--项目侧导航 end-->
<div class="cl"></div> <div class="cl"></div>
<!-- 项目描述 -->
<div class="project_intro"> <div class="project_intro">
<h4 class="project_h4"><%= l(:label_project_overview)%></h4><%= @project.description %> <div id="course_description" class="course_description">
<div class="lg-foot"> <h4 ><%= l(:label_project_overview) %></h4><%= @project.description %>
<%= l(:label_expend_information)%> <span class="g-arr-down"><img src="/images/new_project/jiantou.jpg" width="12" height="6" /></span>
</div> </div>
</div><!--项目简介 end--> <div class="lg-foot" onclick="show_more_msg();"><%= l(:label_expend_information) %><span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
</div>
<!-- tag模块 -->
<div class="project_Label"> <div class="project_Label">
<h4 class="project_h4"><%= l(:label_tag)%>:</h4> <h4 class="project_h4"><%= l(:label_tag)%>:</h4>
<div class="tag_h" > <div class="tag_h" >

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

@ -63,6 +63,8 @@ a:hover.subnav_green{ background:#14ad5a;}
/*简介*/ /*简介*/
.project_intro{ width:220px; padding:10px; background:#fff; padding-top:5px; color:#6d6d6d;} .project_intro{ width:220px; padding:10px; background:#fff; padding-top:5px; color:#6d6d6d;}
.course_description{max-height: 105px;overflow:hidden;}
.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;}
.lg-foot:hover{ color:#787b7e;} .lg-foot:hover{ color:#787b7e;}
/*右侧内容--动态*/ /*右侧内容--动态*/

Loading…
Cancel
Save