100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 如何使用CSS实现鼠标悬浮出现遮罩层

如何使用CSS实现鼠标悬浮出现遮罩层

时间:2019-09-13 11:07:43

相关推荐

如何使用CSS实现鼠标悬浮出现遮罩层

web前端|css教程

css,鼠标,悬浮,遮罩层

web前端-css教程

这篇文章给大家分享了两个鼠标悬浮出现说明遮罩层的效果,大家可以根据自己的需要选择某一种效果,两种效果文中都给出了实例代码,下面来一起看看吧。

android dialog源码,ubuntu打开程序很慢,如何使用tomcat自启动,py手机爬虫,php excel转txt,淘宝seo是站内搜索引擎lzw

先来一个简单的实现方法:

opencv 源码下载,vscode自动补全标签慢,ubuntu 交流群,tomcat用的jdk,树上掉下爬虫,php 无限分类 非递归,广州seo快速优化哪家好,网站扫码获取对方微信号源码,织梦模板 门户lzw

Document.mask-wrapper {position: relative;overflow: hidden; } .mask-inner {position: absolute;left: 0;top: 100%;width: 100%;height: 100%;-moz-transition: top ease 200ms;-o-transition: top ease 200ms;-webkit-transition: top ease 200ms;transition: top ease 200ms; } .mask-wrapper:hover .mask-inner {top: 0; } #my-mask {width: 300px;height: 200px;background: red; } #my-mask .mask-inner {background: rgba(0,0,0,.5); }

Lorem ipsum

安卓视频监控 源码,ubuntu 查看中断,tomcat怎么配置文件,吉林爬虫馆,php怎么提取密码,四川抖音搜索seo排名优化lzw

foo bar

来个更高级点的:

Document* {margin: 0;padding: 0; } body {font: 12px/1.5 arail; } ul {list-style: none; } .icon-lists {overflow: hidden;background: #f7f7f7;padding: 40px; } .icon-lists .box {float: left;margin-right: 10px; } .box {position: relative;width: 46px;height: 46px;overflow: hidden;z-index: 1; } .box i, .box .info {display: block;width: 46px;height: 46px;border-radius: 46px; } .box .shadow {position: absolute;top: 0;z-index: 10;border-radius: 0;background: url(/shadow.jpg) no-repeat; } .box .icon {position: absolute;top: 0;line-height: 46px;text-align: center;background: #eee;color: #333;font-size: 14px; } .box .info {position: absolute;top: 46px;z-index: 2;background: orange;color: #fff;text-align: center;line-height: 46px;-webkit-transition:top .2s ease-in;-moz-transition:top .2s ease-in;transition:top .2s ease-in; } .box:hover>.info {top:0; }

服装

鞋包

配饰

运动

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。