Open cvz6 opened 3 years ago
修改 selector 配置项即可
[ "vuepress-plugin-code-copy", { selector: 'div[class*="language-"]', }, ],
修改选择器配置项即可
[ "vuepress-plugin-code-copy", { 选择器: 'div[class*="language-"]', }, ],
修改后图标无法点击
解决方法:
[
"vuepress-plugin-code-copy",
{
selector: 'div[class*="language-"]',
},
]
设置style,解决点击不了的问题:
.code-copy {
svg {
z-index: 1;
}
span {
top: 12.5px !important;
color: #ccc;
}
}
图标的z-index不要超过header
配置如下: