-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码复制按钮无法正常显示 #825
Comments
请按照issue模板列出你的主题配置以及浏览器环境 |
主题配置
浏览器是 Google Chrome 87.0,另外使用 Firefox 浏览器(版本不是很清楚)测试过,也存在同样的问题。 |
CDN呢? |
图标用了国内的 CDN,会不会是这个原因? |
@ce-amtic 可能是你的网络环境无法正确加载jsdelivr。 请参照https://ppoffice.github.io/hexo-theme-icarus/Configuration/icarus%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97-cdn%E6%8F%90%E4%BE%9B%E5%95%86/ 将你的CDN换为loli.net |
已经替换 CDN 配置,但是问题依然存在。
发现 clipboard.js 已经成功加载,但是 <div class="level-right">
<a href="javascript:;" class="copy" title="Copy" data-clipboard-target="#code-1609503773896788 .code">
<i class="fas fa-copy"></i>
</a>
</div> 这段代码有时会变成这个样子 <div class="level-right">
</div> 两种情况下均能找到 clipboard.js 我发现您的 demo 也存在同样的问题,是我的网络环境导致的吗? |
@ce-amtic 更换浏览器或者使用隐私模式浏览网页观察是否有同样问题。记得禁用所有第三方插件。 |
+1,同样的问题。 |
@hamlinzheng @ce-amtic 请更新主题至最新commit。 |
已经解决问题,非常感谢! |
Bug描述
初次打开网页时,代码框的复制按钮无法正常显示,按 Ctrl+R 刷新后依然不能显示(如图),但是按 Shift+F5 刷新后又可以显示。
反复确认主题配置并未发现问题。去看了一下您的 demo,发现存在同样的问题,想不到是出于什么原因。
截图
The text was updated successfully, but these errors were encountered: