【发布时间】:2013-09-09 20:36:06
【问题描述】:
我必须格式化一首诗。布局是响应式的,但是当宽度减小时,诗歌容器减小了他的宽度,这首诗就从他身上消失了。 我使用自动换行来换行,但我希望保持两行部分的连续性。
pre {
word-wrap: break-word;
white-space: -moz-pre-wrap;
white-space: pre-wrap;
}
可以这样做(添加返回符号↵):
Cold flower heads are raining over my heart. Oh pit of debris, fierce cave of the shipwrecked.
到
Cold flower heads are↵ raining over my heart. Oh pit of debris, fierce↵ cave of the shipwrecked.
【问题讨论】: