zoukankan      html  css  js  c++  java
  • 悬停工具提示

    非会员让他辅助

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style>
                a { 
                    border-bottom:1px solid #bbb;
                    color:#666;
                    display:inline-block;
                    position:relative;
                    text-decoration:none;
                }
                a:hover,
                a:focus {
                    color:#36c;
                }
                a:active {
                    top:1px; 
                }
                
                /* Tooltip styling */
                a[data-tooltip]:after {
                    border-top: 8px solid #222;
                    border-top: 8px solid hsla(0,0%,0%,.85);
                    border-left: 8px solid transparent;
                    border-right: 8px solid transparent;
                    content: "";
                    display: none;
                    height: 0;
                     0;
                    left: 25%;
                    position: absolute;
                }
                a[data-tooltip]:before {
                    background: #222;
                    background: hsla(0,0%,0%,.85);
                    color: #f6f6f6;
                    content: attr(data-tooltip);
                    display: none;
                    font-family: sans-serif;
                    font-size: 14px;
                    height: 32px;
                    left: 0;
                    line-height: 32px;
                    padding: 0 15px;
                    position: absolute;
                    text-shadow: 0 1px 1px hsla(0,0%,0%,1);
                    white-space: nowrap;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    -o-border-radius: 5px;
                    border-radius: 5px;
                }
                a[data-tooltip]:hover:after {
                    display: block;
                    top: 20px;
                }
                a[data-tooltip]:hover:before {
                    display: block;
                    top: 41px;
                }
                a[data-tooltip]:active:after {
                    top: 20px;
                }
                a[data-tooltip]:active:before {
                    top: 42px;
                }
            </style>
        </head>
        <body>
            <a href="#" data-tooltip="这是文字提示">非会员让他辅助</a>
        </body>
    </html>
  • 相关阅读:
    sudo详解
    Linux按照CPU、内存、磁盘IO、网络性能监测
    基于kickstart定制自动化安装的linux镜像系统
    基于busybox和LFS的linux系统定制
    syslog及syslog-ng详解 日志服务器
    yum报错
    二进制程序及其依赖库的移植脚本
    Linux 系统裁剪
    linux 内核手动编译
    linux rc.sysinit文件详解
  • 原文地址:https://www.cnblogs.com/zhanghailing/p/11995082.html
Copyright © 2011-2022 走看看