元素超过父div的宽度,因为nowrap白色空间设置

时间:2013-02-11 14:20:17

标签: html css overflow whitespace

<div class="external_wall_right_col_sub_ad">
<div class="external_wall_right_col_sub_ad_img">
<h4>
<a href="http://localhost/PublishWall/oglasnik/oglas/ogled/2312/Razgorsek-Sedezne-garniture-Bari">Razgoršek, Sedežne garniture, Bari</a>
</h4>
<p></p>
</div>

我有这个html结构。主包装的宽度设置为165像素。当我将h-a中的白色空间更改为nowrap时,看起来包裹的宽度不再适用,请查看下面的图片(红色标题应该停在黑线上)。

enter image description here

我将溢出设置为隐藏。如何在文本超出宽度时停止文本

0 个答案:

没有答案
相关问题