Compare commits
2 Commits
a9beb0dda6
...
6c176a1039
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c176a1039 | |||
| bffe804a7b |
@@ -33,8 +33,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 文章内容 -->
|
||||
<div id="rendered-content" class="nhlp-app-content">
|
||||
{$article.content|raw|default=''}
|
||||
<div class="ql-container">
|
||||
<div id="rendered-content" class="nhlp-app-content ql-editor">
|
||||
{$article.content|raw|default=''}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 搜索 -->
|
||||
<div class="nhlpapp-search">
|
||||
|
||||
@@ -156,7 +156,10 @@ body {
|
||||
-moz-tab-size: 4;
|
||||
text-align: left;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word
|
||||
word-wrap: break-word; /* 兼容旧浏览器 */
|
||||
overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */
|
||||
word-break: normal; /* 禁止强制拆分单词 */
|
||||
hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */
|
||||
}
|
||||
|
||||
.ql-editor>* {
|
||||
@@ -563,15 +566,27 @@ body {
|
||||
}
|
||||
|
||||
.ql-editor .ql-size-small {
|
||||
font-size: .75em
|
||||
font-size: .75em;
|
||||
word-wrap: break-word; /* 兼容旧浏览器 */
|
||||
overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */
|
||||
word-break: normal; /* 禁止强制拆分单词 */
|
||||
hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */
|
||||
}
|
||||
|
||||
.ql-editor .ql-size-large {
|
||||
font-size: 1.5em
|
||||
font-size: 1.5em;
|
||||
word-wrap: break-word; /* 兼容旧浏览器 */
|
||||
overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */
|
||||
word-break: normal; /* 禁止强制拆分单词 */
|
||||
hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */
|
||||
}
|
||||
|
||||
.ql-editor .ql-size-huge {
|
||||
font-size: 2.5em
|
||||
font-size: 2.5em;
|
||||
word-wrap: break-word; /* 兼容旧浏览器 */
|
||||
overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */
|
||||
word-break: normal; /* 禁止强制拆分单词 */
|
||||
hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */
|
||||
}
|
||||
|
||||
.ql-editor .ql-direction-rtl {
|
||||
|
||||
Reference in New Issue
Block a user