pre 英文字母自动换行 测试有效
pre{
font-size: 12px;
line-height: 16px;
border: #c0c0c0 1px dotted;
border-left:#6ce26c 5px solid;
padding: 8px;
white-space: pre-wrap; /* 支持css 3的浏览器 */
white-space: -moz-pre-wrap; /* 老版Mozilla*/
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /*IE 5.5以上 */
font-family: "Consolas", "Courier New", "宋体", Courier, mono, serif;
width:500px;
}
本文链接:https://www.dnwfb.com/1073.html,转载请注明出处。
评论0