我可以发誓我已经看过关于这个问题的文章,但是我无法为了我的生活再次找到它们! 基本上,如果我有div的内容不受div宽度限制
<div style="width: 250px;">The width of this div should be no less than 250px wide</div>
在下面的代码,在div
内容不限制它的宽度与宽度指定引起溢出的问题:
<div class="PostIt">
<div id="tags"><span class="qExtraLarge"><a href="Team/Default.aspx#lucky">Lucky Khumalo</a></span>
<span class="qLarge"><a href="Investments/Social/School/Default.aspx">School</a></span>
a;orghaepoht8aegae[hgi'aehg[ahgiha[e8gjaerghuoaeir'ghu;dsOsgh;vrwi/jbvh?URbnIRWhb'a[985h[qygherionhbdl</div>
</div>
.PostIt { display: block; text-align: left; padding: 30px 30px 30px 30px; height: 240px !important; width: 190px !important; background: transparent url("Images/PostIt.png"); }
.PostIf #tags { width: 250px !important; }
任何建议将是巨大的!
在此先感谢。
既不隐藏溢出或滚动条是不够好,我需要基本上为内容设置文字换行 – 2010-08-26 16:37:15
是的,不间断的“单词”总是会破坏你的布局。 word-wrap属性在CSS 3中,但已经得到很好的支持(实际上是由MS发明的)。 – 2010-08-26 17:01:05