Conversation
移除 code block 样式内不必要的 z-index z-index 是用来规定重叠元素的层级关系 的。两个按钮的 z-index 都是 auto,而 这里的 code block 的 z-index 错误的规 定为 1,会导致 code block 的元素覆盖 按钮的元素,进而导致无法选中,视觉上就是点不动无法使用。 参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/z-index
Deploying sapling with
|
| Latest commit: |
65a5e07
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a74faf16.sapling-8jp.pages.dev |
| Branch Preview URL: | https://fix-code-block-button.sapling-8jp.pages.dev |
wling-art
approved these changes
Dec 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
移除 code block 样式内不必要的 z-index
z-index 是用来规定重叠元素的层级关系的。两个按钮的 z-index 都是 auto,而这里的 code block 的 z-index 错误的规定为 1,会导致 code block 的元素覆盖按钮的元素,进而导致无法选中,视觉上就是点不动无法使用。
参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/z-index