这是我的jsfiddle
这是标记(小提琴中的css)。
<div class="item">
<a href="#">
<span class="title">Short Title </span><br/>
<span class="date">June 21st, 2013</span>
</a>
</div>okay, this is good
<br/><br/>
<div class="item">
<a href="#">
<span class="title">A title which is medium </span><br/>
<span class="date">June 21st, 2013</span>
</a>
</div>still working...
<br/><br/>
<div class="item">
<a href="#">
<span class="title">A much longer title than normal to accommodate </span><br/>
<span class="date">June 21st, 2013</span>
</a>
</div>yikes, it's being pushed down
<br/><br/>
<div class="item-ideal">
<a href="#">
<span class="title">A much longer title than normal to accommodate </span><br/>
<span class="date">June 21st, 2013</span>
</a>
</div>how I want it to look in this case
浏览所有 4 个 .. 第 4 个 div 有一个独特的类,它硬编码理想尺寸。
是否有任何创造性的解决方案来完成这项工作? 我希望块标签保持相同的大小。