jQuery鼠标悬停内容动画切换效果怎么实现

39次阅读
没有评论

共计 1692 个字符,预计需要花费 5 分钟才能阅读完成。

自动写代码机器人,免费开通

丸趣 TV 小编给大家分享一下 jQuery 鼠标悬停内容动画切换效果怎么实现,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

效果如下:

jQuery 鼠标悬停内容动画切换效果怎么实现

代码如下:

 !DOCTYPE html
html
head
meta http-equiv= content-type content= text/html; charset=UTF-8
title jQuery 鼠标悬停内容动画切换效果 /title
style
margin: 0;
padding: 0;
list-style: none;
img {
border: 0;
color: #fff;
text-decoration: none;
.servicesBox {
width: 1000px;
height: 270px;
margin: 0 auto;
clear: both;
line-height: 18px;
color: #999999;
font-size: 12px;
.servicesBox .serBox {
cursor: pointer;
border: 1px solid #fff;
display: inline;
width: 198px;
height: 250px;
float: left;
overflow: hidden;
background-color: #f7f7f7;
position: relative;
.servicesBox .serBoxOn {
font-family: Microsoft Yahei
display: none;
width: 320px;
height: 270px;
background: url(http://demo.lanrenzhijia.com/2014/pic0910/images/serboxon_bg.gif) repeat 0px 0px;
position: absolute;
left: 0px;
top: 0px;
z-index: 19;
.servicesBox .serBox .pic1 {
width: 110px;
height: 110px;
text-align: center;
position: absolute;
top: 22px;
right: 41px;
z-index: 99;
.servicesBox .serBox .pic2 {
width: 110px;
height: 110px;
text-align: center;
position: absolute;
top: 22px;
left: -110px;
z-index: 99;
.servicesBox .serBox .txt1 {
width: 198px;
height: 100px;
color: #999999;
position: absolute;
top: 145px;
left: 0px;
z-index: 99;
.servicesBox .serBox .txt2 {
width: 198px;
height: 100px;
color: #a9cf4f;
position: absolute;
top: 145px;
right: -240px;
z-index: 99;
.servicesBox .serBox span.tit {
font-size: 16px;
display: block;
text-align: center;
.servicesBox .serBox .txt1 .tit {
color: #000000;
line-height: 30px;
.servicesBox .serBox .txt2 .tit {
color: #fff;
line-height: 30px;
font-family: Microsoft Yahei
.servicesBox .serBox p {
padding: 0 10px;
text-align: center;
/style
/head
body
!-- 代码 begin --
p >

以上是 jQuery 鼠标悬停内容动画切换效果怎么实现的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注丸趣 TV 行业资讯频道!

向 AI 问一下细节

丸趣 TV 网 - 提供最优质的资源集合!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-12-18发表,共计1692字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)