我在方框内有一个由“
”和“
列表没有问题,但是当段落中的单词到达框的填充位置时,它们会分成两半。
<div class="row" style="margin-top: 15px;">
<div class="alert alert-warning garrigues_RemindersAML__Exvyp col-md-12">
<p style="font-size: 17px;margin-left:0px;">Reminder </p>
<p> A priori, it is not necessary to request any document from this type of clients. The following documents must be obtained from public sources of information, and included in the AML questionnaire:</p>
<ul>
<li>Documentation proving that it is one of the clients considered low risk.</li>
<li>Documentation accrediting the activity (for example, annual accounts or screenshot of the website).</li>
</ul>
<p> If the customer is a subsidiary or branch of a financial entity or of listed companies whose securities are admitted to trading in a market regulated in the EU or Equivalent Third Countries, it must be justified that they belong (directly or indirectly in more than 50% to the financial or listed entity).</p>
<p> This client has LOW RISK and, therefore, applies SIMPLIFIED MEASURES OF DILIGENCE DUE.</p>
</div>
</div>
我已尽一切努力防止它们中断,但是只有两个结果:它们中断,或者该段落在框外溢出。
我已经尝试了所有选项,包括空格,断字,溢出包装,溢出,显示,宽度,边距,高度...结果始终相同:它们折断或溢出。
是否有防止它们破裂的方法,将它们放在下一行而不是使它们溢出?
谢谢你。
在CSS的某处必须有break-word: break-all;
属性,该属性会影响您的音乐盒或段落。
删除。
p {
background: teal;
width: 150px;
margin: 1em;
}
.breaking {
word-break: break-all;
}
<p>This text has a long_long_word to test the issue</p>
<p class="breaking">This text has a long_long_word to test the issue</p>
您是否尝试过“ 自动换行:断行;”?