课程通知展开信息按钮显示隐藏控制
This commit is contained in:
parent
2c5c261b70
commit
a59677c22e
|
@ -52,7 +52,7 @@
|
||||||
<span class="fl"> <%= l(:label_release_news) %>:</span><%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %><br />
|
<span class="fl"> <%= l(:label_release_news) %>:</span><%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %><br />
|
||||||
<div class="cl mb5"></div>
|
<div class="cl mb5"></div>
|
||||||
<div id="news_description_<%= news.id %>" class="news_description mt5"><%= textilizable(news, :description) %><br /> <%= l(:label_create_time) %> :<%= format_time(news.created_on) %></div>
|
<div id="news_description_<%= news.id %>" class="news_description mt5"><%= textilizable(news, :description) %><br /> <%= l(:label_create_time) %> :<%= format_time(news.created_on) %></div>
|
||||||
<div class="news_foot" onclick="news_show_more_des(<%= news.id %>);"><%= l(:label_expend_information) %> <span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
|
<div class="news_foot" style="display: none;" onclick="news_show_more_des(<%= news.id %>);" id="news_foot_<%= news.id %>"><%= l(:label_expend_information) %> <span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div><!--problem_main end-->
|
</div><!--problem_main end-->
|
||||||
|
@ -90,4 +90,13 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
$(function(){
|
||||||
|
$('.news_description').each(function () {
|
||||||
|
if($(this).height() >= 60)
|
||||||
|
{
|
||||||
|
$('#news_foot_'+$(this).attr('id').replace('news_description_','')).css("display","block");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -19,7 +19,7 @@ a:hover.project_name{ color:#016f33;}
|
||||||
a.project_txt02{ color:#0781b4; width:618px; display:block; float:left; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
a.project_txt02{ color:#0781b4; width:618px; display:block; float:left; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
a:hover.project_txt{ color:#066e9a;}
|
a:hover.project_txt{ color:#066e9a;}
|
||||||
.noline{ border-bottom:none;}
|
.noline{ border-bottom:none;}
|
||||||
.news_description{max-height: 38px;overflow:hidden; }
|
.news_description{max-height: 60px;overflow:hidden; }
|
||||||
.news_description_none{max-height: none;}
|
.news_description_none{max-height: none;}
|
||||||
a.news_foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:600px; height:20px; padding-top:3px; cursor:pointer;}
|
a.news_foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:600px; height:20px; padding-top:3px; cursor:pointer;}
|
||||||
a:hover.news_foot{ color:#787b7e; border:1px solid #d4d4d4;}
|
a:hover.news_foot{ color:#787b7e; border:1px solid #d4d4d4;}
|
||||||
|
|
Loading…
Reference in New Issue