html - 连续使用多个<code>,如何自动换行

查看:129
本文介绍了html - 连续使用多个<code>,如何自动换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

测试代码如下

<p>测试开始<code>test123</code><code>test123</code><code>test124</code><code>test23</code><code>test143</code><code>test223</code><code>test1a3</code><code>test123</code><code>test123</code><code>test124</code><code>test23</code><code>test143</code><code>test223</code><code>test1a3</code><code>test023</code><code>test13</code>结束</p>

建议使用小频查看效果

解决方案

p {
    word-wrap: break-word;//自动换行
    word-break: break-all;//英文单词断行
}

这篇关于html - 连续使用多个&lt;code&gt;,如何自动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆