复现:
例如一共打 3 行文本
光标置于第 2 行行首,开始用 DEL 键删除后面的文字,然后当删除完第二行,第三行会跳上来,此时,瞬间出现了样式代码。
我查了一下,好像以前出现过 https://ld246.com/article/1623917378658
复现:
例如一共打 3 行文本
光标置于第 2 行行首,开始用 DEL 键删除后面的文字,然后当删除完第二行,第三行会跳上来,此时,瞬间出现了样式代码。
我查了一下,好像以前出现过 https://ld246.com/article/1623917378658
好了,找到问题了,是代码片断的问题。代码片断关了就 OK 了。我回头排查一下代码片断。
/* 文件名(总标题): 用个鲜艳的颜色当作标题 再加个底边框以和正文分隔 */ .protyle-title__input { color: green; /*border-bottom: 1px solid white;*/ font-family: "Noto Sans CJK SC Black"; font-size: 32px; text-align: center; } /*H1-H6标题基本样式*/ .protyle-wysiwyg .h1, .protyle-wysiwyg h1, .protyle-wysiwyg .h2, .protyle-wysiwyg h2, .protyle-wysiwyg .h3, .protyle-wysiwyg h3, .protyle-wysiwyg .h4, .protyle-wysiwyg h4, .protyle-wysiwyg .h5, .protyle-wysiwyg h5, .protyle-wysiwyg .h6, .protyle-wysiwyg h6 { padding-top: 0 !important; padding-bottom: 0 !important; padding-right: 0 !important; padding-left: 8px; line-height: 1.5; } .protyle-wysiwyg .h1, .protyle-wysiwyg h1 { font-family: "Noto Sans CJK SC Black"; font-size: 32px; margin: 0 0 0 -48px !important; } .protyle-wysiwyg .h2, .protyle-wysiwyg h2 { margin: 0; font-family: "Noto Serif CJK SC Black"; font-size: 24px; margin: 0 0 0 -32px !important; } .protyle-wysiwyg .h3, .protyle-wysiwyg h3 { font-family: "楷体"; font-size: 16px; margin: 0 0 0 -16px !important; } .protyle-wysiwyg .h4, .protyle-wysiwyg h4 { font-family: "仿宋"; font-size: 16px; margin: 0 0 0 0 !important; } .protyle-wysiwyg .h5, .protyle-wysiwyg h5 { font-family: "仿宋"; font-size: 16px; margin: 0 0 0 0 !important; } .protyle-wysiwyg .h6, .protyle-wysiwyg h6 { font-family: "仿宋"; font-size: 16px; margin: 0 0 0 0 !important; } /* ☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘ 标题提示符样式 ☘ */ .h1 > :first-child::before { content: "Ⅰ"; font-size: 8px; font-family: "ITC Galliard Std"!important; position: absolute; left: -4px; top: 8px; } .h2 > :first-child::before { content: "Ⅱ"; font-size: 8px; font-family: "ITC Galliard Std"; position: absolute; left: -4px; top: 6px; } .h3 > :first-child::before { content: "Ⅲ"; font-size: 8px; font-family: "ITC Galliard Std"; position: absolute; left: -4px; top: 6px; } .h4 > :first-child::before { content: "Ⅳ"; font-size: 8px; font-family: "ITC Galliard Std"; position: absolute; left: -4px; top: 6px; } .h5 > :first-child::before { content: "Ⅴ"; font-size: 8px; font-family: "ITC Galliard Std"; position: absolute; left: -4px; top: 6px; } .h6 > :first-child::before { content: "Ⅵ"; font-size: 8px; font-family: "ITC Galliard Std"; position: absolute; left: -4px; top: 6px; } /* ☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘ */ /* 正文字体 */ .b3-typography:not(.b3-typography--default), .protyle-wysiwyg, .protyle-title { font-family: "宋体", var(--b3-font-family-protyle); font-weight: 300; } /* 引用链接 */ .protyle-wysiwyg [data-node-id] span[data-type~=block-ref]:not(.av__celltext), .protyle-wysiwyg [data-node-id] span[data-type~=file-annotation-ref] { color: red !important; font-weight: 500; border: none !important; } .protyle-wysiwyg [data-node-id] span[data-type~="block-ref"]:hover, .protyle-wysiwyg [data-node-id] span[data-type~="file-annotation-ref"]:hover { color: hsl(201, 17%, 70%); text-decoration-line: underline; } /* 浮评锚:上加线 */ .protyle-wysiwyg span[data-type~=inline-memo] { border-top: 2px double yellow !important; text-decoration: none; } /* 高亮 */ .protyle-wysiwyg span[data-type~=mark], .protyle-wysiwyg mark { background: yellow; color: black; } /* 图片固定宽度 */ .protyle-wysiwyg [data-node-id] .img:not([style]) img:not([style~="height:"]):not([style~="width:"]) { width: 1000px; } /* 超级块 以下样式参考 StarDust主题 */ .protyle-wysiwyg [data-node-id].sb { background-color: hsl(202deg 28% 30%); border-radius: 0.4em; padding: 0.1em 0.2em 0.1em 0.3em; margin-bottom: 0.6em; } /* 光标颜色:亮蓝色 */ .protyle-content { caret-color: #18f7ff; } /*气泡通知*/ .b3-snackbars { display: none; position: fixed; right: 24px; top: 64px; }
应该是这串
/* ☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘☘ 标题提示符样式 ☘ */ .h1 > :first-child::before { content: "Ⅰ"; font-size: 8px; font-family: "ITC Galliard Std"!important; position: absolute; left: -4px; top: 8px; }
作者:syuer9528
链接: v3.1.25 按 DEL 删除行时,意外出现 css 样式代码 - syuer9528 的回帖
来源:链滴
协议:CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0/
我也遇到这个问题了。删除空行会显示出 CSS,点击 CTRL+Z 车撤销后,整行变成透明的,显示不出来。我以为是主题造成的,就切换会原版主题,果然显示出来了。不过后来测试所有主题都会想出现消失的问题,但是切换一下主题能显示出来。目前来说有影响,但不是致命性的,期待马上修复。
为成为自由职业者在家办公而努力吧!
正则表达式(Regular Expression)使用单个字符串来描述、匹配一系列遵循某个句法规则的字符串。
应用程序编程接口(Application Programming Interface)是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。
Love2D 是一个开源的, 跨平台的 2D 游戏引擎。使用纯 Lua 脚本来进行游戏开发。目前支持的平台有 Windows, Mac OS X, Linux, Android 和 iOS。
腾讯公司 2011 年 1 月 21 日推出的一款手机通讯软件。用户可以通过摇一摇、搜索号码、扫描二维码等添加好友和关注公众平台,同时可以将自己看到的精彩内容分享到微信朋友圈。
确认过眼神后的灵魂连接,站在链在!
ngrok 是一个反向代理,通过在公共的端点和本地运行的 Web 服务器之间建立一个安全的通道。
DNSPod 建立于 2006 年 3 月份,是一款免费智能 DNS 产品。 DNSPod 可以为同时有电信、网通、教育网服务器的网站提供智能的解析,让电信用户访问电信的服务器,网通的用户访问网通的服务器,教育网的用户访问教育网的服务器,达到互联互通的效果。
提供一个服务绝不仅仅是简单的把硬件和软件累加在一起,它包括了服务的可靠性、服务的标准化、以及对服务的监控、维护、技术支持等。
Bootstrap 是 Twitter 推出的一个用于前端开发的开源工具包。它由 Twitter 的设计师 Mark Otto 和 Jacob Thornton 合作开发,是一个 CSS / HTML 框架。
H2 是一个开源的嵌入式数据库引擎,采用 Java 语言编写,不受平台的限制,同时 H2 提供了一个十分方便的 web 控制台用于操作和管理数据库内容。H2 还提供兼容模式,可以兼容一些主流的数据库,因此采用 H2 作为开发期的数据库非常方便。
jQuery 是一套跨浏览器的 JavaScript 库,强化 HTML 与 JavaScript 之间的操作。由 John Resig 在 2006 年 1 月的 BarCamp NYC 上释出第一个版本。全球约有 28% 的网站使用 jQuery,是非常受欢迎的 JavaScript 库。
子曰:“工欲善其事,必先利其器。”
有点意思就行了
Quicker 您的指尖工具箱!操作更少,收获更多!
Telegram 是一个非盈利性、基于云端的即时消息服务。它提供了支持各大操作系统平台的开源的客户端,也提供了很多强大的 APIs 给开发者创建自己的客户端和机器人。
Bug 本意是指臭虫、缺陷、损坏、犯贫、窃听器、小虫等。现在人们把在程序中一些缺陷或问题统称为 bug(漏洞)。
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的操作系统上。容器完全使用沙箱机制,几乎没有性能开销,可以很容易地在机器和数据中心中运行。
Mobi.css is a lightweight, flexible CSS framework that focus on mobile.
CSS(Cascading Style Sheet)“层叠样式表”是用于控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。
WiFiDog 是一套开源的无线热点认证管理工具,主要功能包括:位置相关的内容递送;用户认证和授权;集中式网络监控。
网络爬虫(Spider、Crawler),是一种按照一定的规则,自动地抓取万维网信息的程序。
Laravel 是一套简洁、优雅的 PHP Web 开发框架。它采用 MVC 设计,是一款崇尚开发效率的全栈框架。
Notion - The all-in-one workspace for your notes, tasks, wikis, and databases.
Elasticsearch 是一个基于 Lucene 的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于 RESTful 接口。Elasticsearch 是用 Java 开发的,并作为 Apache 许可条款下的开放源码发布,是当前流行的企业级搜索引擎。设计用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便。
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于