内容简介:翻译自:https://stackoverflow.com/questions/14465765/how-to-make-a-entire-span-drop-into-a-new-line
这个片段显示了我想要的内容:
http://jsfiddle.net/945Df/3/<div class="sup" id="pr">
<strong>
<a href="#">Rosario, Santa Fe, Argentina.</a> <span class="date">17 de septiembre de 2013.</span></strong>
</div>
<div class="sup">
<strong>
<a href="#">Rosario, Santa Fe, Argentina.</a> <span class="date">17 de septiembre de 2013.</span>
</strong>
</div>
当没有更多空间时,我希望当div的宽度(在proyect,视口中)时,跨度下降到一个新行.
对不起我的不好解释.我不知道怎么做.谢谢!
编辑:在第二个示例中,短语“SEPTIEMBRE DE 2013”.落入一条新线.但是“17 DE”仍然在上面.我想要“17 DE SEPTIEMBRE DE 2013”.落入一条新线.得到它了?
如果您希望跨度不换行到新行,但完全移动到其他文本下方,则可以使用white-space:nowrap;
.date {
text-transform: uppercase;
color:#848484;
white-space:nowrap;
}
翻译自:https://stackoverflow.com/questions/14465765/how-to-make-a-entire-span-drop-into-a-new-line
以上所述就是小编给大家介绍的《html – 如何使整个跨度进入新行?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
ANSI Common Lisp
Paul Graham / Prentice Hall / 1995-11-12 / USD 116.40
For use as a core text supplement in any course covering common LISP such as Artificial Intelligence or Concepts of Programming Languages. Teaching students new and more powerful ways of thinking abo......一起来看看 《ANSI Common Lisp》 这本书的介绍吧!