diff --git a/components/iconfont/index.md b/components/iconfont/index.md index 98728d7ee5..1ec727a8c1 100644 --- a/components/iconfont/index.md +++ b/components/iconfont/index.md @@ -492,12 +492,27 @@ ul.anticons-list li { height: 92px; color: #5C6B77; transition: all 0.2s ease; + position: relative; +} +ul.anticons-list li:before { + content: "点击后 ctrl+c 复制代码"; + top: -17px; + left: 13px; + font-size: 12px; + text-align: center; + position: absolute; + display: none; + color: #aaa; + transform: scale(0.8); } ul.anticons-list li:hover { background-color: #4BB8FF; color: #fff; border-radius: 4px; } +ul.anticons-list li:hover:before { + display: block; +} .anticon { font-size: 24px; margin: 18px 0 16px; @@ -510,3 +525,46 @@ ul.anticons-list li:hover { font-family: Consolas; } + +