admin
admin
3843 0 0

让pre 里面的内容自动换行的css 兼容各种浏览器

让pre 里面的内容自动换行的css 兼容各种浏览器

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

Tyler Longren http://www.longren.org/wrapping-text-inside-pre-tags/

0

See Also

Nearby


Discussion

Login Topics