Ross Wan's World!

Python, Ajax, PHP and Linux.

Posts Tagged ‘pre’

利用 CSS 实现标签 pre 内容自动换行

Posted by Ross Wan 于 2011/08/19

兼容 IE ,Firefox, Chrome 等浏览器 :)

pre{
    display: block;
    overflow: auto;
    word-wrap:break-word;
    white-space: pre-wrap;
}

Posted in CSS | Tagged: , , , | 1 Comment »