limit the width of a link

This commit is contained in:
jiyinyiyong 2013-05-18 10:46:37 +08:00
parent b6b6006309
commit 5ceed92a69
2 changed files with 14 additions and 6 deletions

View File

@ -11,6 +11,13 @@ body, p {
font-family: "Helvetica Neue", Helvetica, "Wenquanyi Micro Hei", Arial, sans-serif;
word-break: break-all;
}
#main p a {
white-space: nowrap;
max-width: 600px;
overflow: hidden;
display: inline-block;
text-overflow: ellipsis;
}
#wrapper {
}
#main {
@ -153,7 +160,7 @@ a.light:hover {
width: 60px;
}
.topic_content {
padding: 10px 4px;
padding: 0px 6px;
}
.board .floor {
line-height: 24px;
@ -611,8 +618,8 @@ form {
}
.topic_content p, .reply_content p {
font-size: 14px;
line-height: 27px;
margin-bottom: 0px;
line-height: 28px;
margin: 28px 0px;
}
div[class$=content] > blockquote > p {

View File

@ -48,8 +48,7 @@
</ul>
</div>
<div class='inner'>
<h3><% if(topic.top){%>[置顶]<% } %><%= topic.title %></h3>
<div class='sep10'></div>
<h3><% if(topic.top){%>[置顶]<% } %><%= topic.title %></h3>
<div class='topic_content'>
<%- topic.content %>
</div>
@ -71,7 +70,9 @@
</span>
<% } %>
<span class='sp10'></span>
<a class='dark' id='share_weibo_btn' href="javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=<%= config.weibo_key %>',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','分享来自<%= config.name %>的话题:<%= topic.title %>','',''));">分享到 weibo</a>
<a class='dark' id='share_weibo_btn'
href="javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=<%= config.weibo_key %>',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','分享来自<%= config.name %>的话题:<%= topic.title %>','',''));"
>分享到 weibo</a>
<% if (locals.current_user) { %>
<% if (!topic.in_collection) { %>
<button class='btn btn-success fr' id='collect_btn' action='collect'>加入收藏</button>