我正在創建tumblr主題,當您將鼠標懸停在照片文章上時,它會顯示說明(示例說明如下所示)。將橢圓添加到溢出3行的內容
設計師只希望描述的前三行在描述後面顯示和放置橢圓,如果它溢出3行。
考慮到字符數不夠好,最好的方法是什麼?
感謝您的幫助......
http://brendan-rice.tumblr.com/
實例照片張貼
<div class="description photo" style="background-color: rgb(82, 69, 99);">
<div style="">
<input type="hidden" value="22186233340" class="id">
<span class="title" style="">
<p style="">
<a href="http://staff.tumblr.com/post/21806558913/attention-west-coast-check-out-our-official" class="tumblr_blog" style="">staff</a>:
</p>
<blockquote style="">
<p style="">
<strong style="">Attention West Coast:</strong> Check out our <a href="http://www.tumblr.com/meetup/10107" style="">official Tumblr meetup</a> in Los Angeles on Tuesday 5/1! RSVP <a href="http://www.tumblr.com/meetup/10107" style="">here</a>.
</p>
</blockquote>
<p style="">
(Source: <a title="meetups" href="http://meetups.tumblr.com/post/21804989817/were-gonna-be-in-la-tuesday-night-come-grab-a" style="">meetups</a>)
</p>
</span>
<div class="actions" style="">
<span style="float: left;">
<a target="_blank" href="http://www.tumblr.com/follow/penguinenglishlibrary " class="follow" style="">
Follow </a>
</span>
<span style="float: right;">
<a target="_blank" href="http://www.tumblr.com/reblog/22186233340/Pw5OgVj1" class="reblog" style="">
Reblog </a>
</span>
<span style="float: right;">
<a target="_blank" href="http://www.tumblr.com/reblog/22186233340/Pw5OgVj1" class="like" style="">
Like </a>
</span>
</div>
</div>
</div>
你實際上想要省略號的哪個元素? – mattytommo
理想情況下,我想在span.title – Burt
上工作所以身體中的一切都是?包含啓動「Attention West Coast ...」文本的項目? – mattytommo