英文字母自动换行 CSS

pre.code {
            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;
        }
posted on 2010-02-05 17:21  ItControler  阅读(232)  评论(0编辑  收藏  举报