将鼠标悬停在代码窗口上时,如何使复制按钮出现?代码窗口.codes
。
复制代码如下所示:
pre[class*="language-"] .copy {
content: "copy";
position: absolute;
bottom: 4px;
right: 6px;
color: #fff;
cursor: pointer;
transition: all 200ms ease;
}
将鼠标悬停在代码窗口上时,如何使复制按钮出现?代码窗口.codes
。
复制代码如下所示:
pre[class*="language-"] .copy {
content: "copy";
position: absolute;
bottom: 4px;
right: 6px;
color: #fff;
cursor: pointer;
transition: all 200ms ease;
}
在主 css 代码之前,放置显示块。
隐藏块。
该块只会出现在悬停时。