我一直在做一个文字压缩模板。 i 在某些地方 st......
问题在于:
• tag子和 im子的大小......
i) 看到,干 the只能够控制tag,而控制着 flows。
i 我的法典如下:
<div>
<p> some contents <img src="an_image"/> some morecontent</p>
<div>
基本想要的是:
div height = <p> height U(union) <img> height
但是,实际上正在得到的是:
div height = <p> height; while <img> over flows
i have already checked for similar questions on Stack Overflow but was not able to find one which solves a similar problem.. please give me some idea..
更新:
这是我的法典:
<div id="the_content">
<p><img class="alignright" src="http://i35.tinypic.com/990wtx.png" alt="WordPress Logo" align="right" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur quam augue, vehicula quis, tincidunt vel, varius vitae, nulla. Sed convallis orci. Duis libero orci, pretium a, <a href="#">convallis quis</a>, pellentesque a, dolor. Curabitur vitae nisi non dolor vestibulum consequat. <a href="http://localhost/wordpress/?p=55#more-55" class="more-link">(more…)</a></p>
</div>