𝕷𝖎𝖑𝖏𝖆𝖈𝖐 发表于 2026-1-3 16:48:04

为什么发贴按个回车空一行,发布后是空了二行呢? New

X3.4版本。一直都是这样。是本来就设定的按一下二行?还是哪里设置的问题?


1 贡献最佳答案

不同的浏览器和前端对JS的空行处理不同导致的差异。




<img data-uid="10" data-size="small" class="_avt user_avatar" />湖中沉发表于5 小时前
[*]详细答案 >

IT618发布 发表于 2026-1-3 16:48:58



                        不同的浏览器和前端对JS的空行处理不同导致的差异。
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

浅生 发表于 2026-1-3 16:49:19

3.5也是这样,我现在发帖都要切换纯文本模式调整空格,然后再发布
页: [1]
查看完整版本: 为什么发贴按个回车空一行,发布后是空了二行呢? New