链接空白处改成不能点击

修复项目标题过长,布局变形
This commit is contained in:
huang 2015-04-16 15:16:15 +08:00
parent 3c563eaecb
commit b80251a247
4 changed files with 8 additions and 6 deletions

View File

@ -81,7 +81,7 @@
<%= l(:label_projects_community) %> <%= l(:label_projects_community) %>
</a> </a>
</h2> </h2>
<p> <p class="hidden">
<%= l(:label_user_location) %> : <%= l(:label_user_location) %> :
<%= link_to l(:field_homepage), home_path %> <%= link_to l(:field_homepage), home_path %>
> >
@ -121,7 +121,7 @@
<!-- 项目得分 --> <!-- 项目得分 -->
<div class="cl"></div> <div class="cl"></div>
<div> <div>
<a class="pr_info_name fl c_dark fb" href="javascript:void(0)" target="_blank"> <a class="pr_info_name fl c_dark fb break_word" href="javascript:void(0)" target="_blank">
<%= l(:label_project_name) %><%= @project.name %></a> <%= l(:label_project_name) %><%= @project.name %></a>
<% if @project.is_public? %> <% if @project.is_public? %>
<span class="img_private"><%= l(:label_public)%></span> <span class="img_private"><%= l(:label_public)%></span>
@ -182,7 +182,7 @@
<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"> <div id="course_description_content break_word">
<%= textilizable(@project.description) if @project.description && !@project.description.blank? %> <%= textilizable(@project.description) if @project.description && !@project.description.blank? %>
</div> </div>
</div> </div>
@ -205,7 +205,7 @@
<div class="cl"></div> <div class="cl"></div>
</div><!--项目标签 end--> </div><!--项目标签 end-->
</div> </div>
</div>
<div id="RSide" class="fl"> <div id="RSide" class="fl">
<%= render_flash_messages %> <%= render_flash_messages %>
@ -213,6 +213,7 @@
<%= call_hook :view_layouts_base_content %> <%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>
</div>
<div style="clear:both;"></div> <div style="clear:both;"></div>
<div class="cl"></div> <div class="cl"></div>
<%= render :partial => 'layouts/new_footer'%> <%= render :partial => 'layouts/new_footer'%>

View File

@ -73,7 +73,7 @@
</div> </div>
<% end %> <% end %>
<br/> <br/><br/>
<% other_formats_links do |f| %> <% other_formats_links do |f| %>
<%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %> <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>
<%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %> <%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>

View File

@ -71,7 +71,7 @@ a:hover.problem_pic{border:1px solid #64bdd9;}
.pro_txt_w{width:610px;} .pro_txt_w{width:610px;}
a.problem_name{ color:#ff5722; } a.problem_name{ color:#ff5722; }
a:hover.problem_name{ color:#d33503;} a:hover.problem_name{ color:#d33503;}
a.problem_tit{ color:#0781b4; width:430px; font-weight:bold; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} a.problem_tit{ color:#0781b4; max-width:430px; font-weight:bold; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
a.problem_tit02{ color:#0781b4; font-weight:bold;width:400px; } a.problem_tit02{ color:#0781b4; font-weight:bold;width:400px; }
a:hover.problem_tit,a:hover.problem_tit02{ color:#09658c; } a:hover.problem_tit,a:hover.problem_tit02{ color:#09658c; }
.problem_main{ border-bottom:1px dashed #d4d4d4; padding-bottom:10px; margin-bottom:10px;} .problem_main{ border-bottom:1px dashed #d4d4d4; padding-bottom:10px; margin-bottom:10px;}

View File

@ -44,6 +44,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden} .clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}
.clearfix{clear:both;zoom:1} .clearfix{clear:both;zoom:1}
.break_word{ word-break:break-all; word-wrap: break-word;} .break_word{ word-break:break-all; word-wrap: break-word;}
.hidden{overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.flow_hidden{ width:300px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} .flow_hidden{ width:300px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
/* Spacing */ /* Spacing */