Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 第337天 使用css的attr()写一个类似a标签title的提示框 #2086

Open
haizhilin2013 opened this issue Mar 17, 2020 · 1 comment
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第337天 使用css的attr()写一个类似a标签title的提示框

#220

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Mar 17, 2020
@longhui520
Copy link

   .box{
       position:relative;
   }
   .box:hover{
       content: attr(data-title);    
       display: inline-block;
       padding: 10px 14px;
       border: 1px solid #ddd;
       border-radius: 5px;
       position: absolute;
       top: -50px;
       left: -10px;
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

2 participants