1 06 2009

解决
标签里的文本换行(兼容IE, FF和Opera等)

bigCat Posted in CSS, JavaScript - Comment.isBlank

pre {\r\nwhite-space: pre-wrap; /* css-3 */\r\nwhite-space: -moz-pre-wrap; /* Mozilla, since 1999 */\r\nwhite-space: -pre-wrap; /* Opera 4-6 */\r\nwhite-space: -o-pre-wrap; /* Opera 7 */\r\nword-wrap: break-word; /* Internet Explorer 5.5+ */\r\n}\r\n\r\n出自: Making preformated text wrap in CSS3, Mozilla, Opera and IE

Host: (miao) | Word: Press | Code: HTML5