"Subject to 10% service charge per room per night. Any cancellation or amendments can be made 2 days prior to arrival. Otherwise, one nights’ room rate will be levied. The first night guarantee is required at time of reservation and one night room rental will be charged to the credit card provided in the event of no show, late cancellation or amendment. If any dispute arises, Hotel Rainbow Hong Kong reserves the final decision."
我使用了 css 属性“word-break:break-all”,但效果不佳。 还有一些词被打散了。
最佳答案
** 你需要'word-wrap'属性**
用这个
word-wrap:break-word;
关于css - 一个单词一个单词地打断一个长句子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23056380/