Toggle navigation
首页
热门资讯
资源下载
技术博客
会员
中心
会员中心
发布博文
发布资源
首页
文章中心
JavaScript
感应鼠标的图片遮罩动画效果
169 阅读
0 评论
112 点赞
我是
靠谱客
的博主
美丽眼睛
,这篇文章主要介绍
感应鼠标的图片遮罩动画效果
,现在分享给大家,希望可以做个参考。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>感应鼠标的图片遮罩动画效果</title> <meta http-equiv="content-type" content="text/html;charset=gb2312"> <style type="text/css"> html, body, div,ul, li { margin: 0; padding: 0; } div.examples_body { width: 750px; margin: 0px auto; clear: both; overflow: hidden; } .bannerHolder { width: 726px; margin: 20px 0 15px 0; padding: 20px 10px 20px 10px; background-color: #f7f7f7; border: 1px solid #eee; overflow: hidden; -moz-border-radius:12px; -webkit-border-radius:12px; border-radius:12px; } .bannerHolder li { list-style: none; display: inline; } .banner { position: relative; width: 125px; height: 100px; overflow: hidden; float: left; display: inline; margin: 0 10px } .banner img { display: block; border: none; } .banner div { position: absolute; z-index: 100; background-color: #222; width: 60px; height: 60px; cursor: pointer; -moz-border-radius:100px; -webkit-border-radius:100px; border-radius:100px; } .banner .cornerTL { left:-63px; top:-63px; } .banner .cornerTR { right:-63px; top:-63px; } .banner .cornerBL { left:-63px; bottom:-63px; } .banner .cornerBR { right:-63px; bottom:-63px; } .banner p { display: none; left: 0; top: 57px; width: 100%; z-index: 200; position: absolute; font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFF; font-size: 11px; text-align: center; cursor: pointer; } </style> </head> <body> 如果左下角提示错误,刷新一下就可以了。 <div class="examples_body"> <ul class="bannerHolder"> <li> <div class="banner"> <img height="100" width="125" alt="The Best Designs" src="//file2.kaopuke.com:8081/files_image/201804/20101031232000647.jpg"> <p class="companyInfo">Visit The Best Designs</p> <div class="cornerTL"></div> <div class="cornerTR"></div> <div class="cornerBL"></div> <div class="cornerBR"></div> </div> </li> <li> <div class="banner"> <img height="100" width="125" alt="The Best Designs" src="//file2.kaopuke.com:8081/files_image/201804/20101031232000265.jpg"> <p class="companyInfo">Visit The Best Designs</p> <div class="cornerTL"></div> <div class="cornerTR"></div> <div class="cornerBL"></div> <div class="cornerBR"></div> </div> </li> <li> <div class="banner"> <img height="100" width="125" alt="The Best Designs" src="//file2.kaopuke.com:8081/files_image/201804/20101031232000265.jpg"> <p class="companyInfo">Visit The Best Designs</p> <div class="cornerTL"></div> <div class="cornerTR"></div> <div class="cornerBL"></div> <div class="cornerBR"></div> </div> </li> <li> <div class="banner"> <img height="100" width="125" alt="The Best Designs" src="//file2.kaopuke.com:8081/files_image/201804/20101031232000235.jpg"> <p class="companyInfo">Visit The Best Designs</p> <div class="cornerTL"></div> <div class="cornerTR"></div> <div class="cornerBL"></div> <div class="cornerBR"></div> </div> </li> <li> <div class="banner"> <img height="100" width="125" alt="The Best Designs" src="//file2.kaopuke.com:8081/files_image/201804/20101031232000225.jpg"> <p class="companyInfo">Visit The Best Designs</p> <div class="cornerTL"></div> <div class="cornerTR"></div> <div class="cornerBL"></div> <div class="cornerBR"></div> </div> </li> </ul> </div> </body> </html>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
最后
以上就是
美丽眼睛
最近收集整理的关于
感应鼠标的图片遮罩动画效果
的全部内容,更多相关
感应鼠标
内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(
112
)
本文分类:
JavaScript
浏览次数:
169
次浏览
发布日期:2022-04-11 01:25:02
本文链接:
https://www.kaopuke.com/article/k-p-k_14_u_7_o_10_fy_14__23__6_x.html
相关文章
DNS的工作原理图解说明
垂直网站有哪些商业模式?
电脑桌面右下角如何设置显示自己的名字?
Win10系统中Cortana搜索慢的解决办法
感应鼠标的图片遮罩动画效果
Linux在应用层读写寄存器的方法及实现实例
利用phpexcel把excel导入数据库和数据库导出excel实现
go语言接口用法实例分析
评论列表
共有
0
条评论
发表评论
取消回复
登录
注册新账号
立即
投稿
微信扫一扫:分享
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
返回
顶部
发表评论 取消回复