Skip to content

Commit

Permalink
pre代码块超出宽度自动换行
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyueerhao committed Mar 15, 2023
1 parent 8458d28 commit 06b78d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/style/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ pre {
border-bottom-left-radius: var(--pk-g-box-radius);
border-bottom-right-radius: var(--pk-g-box-radius);
font-size: inherit;
white-space:pre-wrap; /* css3.0 */
white-space:-moz-pre-wrap; /* Firefox */
white-space:-pre-wrap; /* Opera 4-6 */
white-space:-o-pre-wrap; /* Opera 7 */
word-wrap:break-word; /* Internet Explorer 5.5+ */
}

body.pre-mac pre {
Expand Down

0 comments on commit 06b78d0

Please sign in to comment.