jQuery鼠标点击下拉显示信息代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jQuery鼠标点击下拉显示信息代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jQuery鼠标点击下拉显示信息代码

HTML代码(index.html):

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery鼠标点击下拉显示信息代码 </title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<style>
.wrap{ width:1120px; margin:0 auto;}

.solutions{width:1120px;overflow: hidden}
.solutions ul{width:1140px}
.solutions li{height:300px;background: #fff; width:263px;border:1px solid #e5e5e5;border-bottom: 5px solid #efefef; float:left; margin-right:20px; position:relative;}

.solutit{display: block;width:100%;}
.solutit img{ margin:30px auto;text-align: center;display: block;}
.solutit h4{color: #333;font-size: 16px;text-align: center;font-weight: bold;line-height: 30px;}
.solutit p{color: #72ac2d;line-height: 20px;font-size: 14px;text-align: center;}
.solutit a{line-height: 30px;height:30px;width: 100px;background: #72ac2d;color: #fff;font-size: 14px;font-weight: bold;text-align: center;display: block;margin:20px auto 0;border-radius: 5px;}
.solutit:hover a{background: #ec8000;}

.solutit2{width:223px;padding:0 20px;position:absolute;left:0px;top:0px;overflow: hidden;height:0px;background: #fff;z-index: 99;display: block;border-bottom:5px solid #72ac2d;}
.solutit2 h4{color: #333;font-weight: bold;font-size: 16px;line-height: 16px;margin-bottom: 10px;text-align: center;margin-top:40px;}
.solutit2 h5{text-align: center;color: #72ac2d;display: block;}
.solutit2 span{display: block;background: #bbbbbb;height:2px;width:50px;margin:10px auto;}
.solutit2 p{line-height: 24px;color: #666666;height:144px;display: block;overflow: hidden;}
</style>

</head>

<body>
<br>
<div class='wrap'>
	<div class='solutions' id="solutions">
		<ul>
			 <li>
				<div class="solutit">
					<img src="images/abouticon1.png">
					<h4>物流优势</h4>
					<p>LOGISTICS ADVANTAGE</p>
					<a class="aaa" href="javascript:void(0)">了解详情</a>
				</div>
				<div class="solutit2">
					<h4>品牌优势</h4>
					<h5>BRAND ADVANTAGE</h5>
					<span></span>
					<p>物流信息内容是</p>
				</div>
			 </li>
			 <li>
				<div class="solutit">
					<img src="images/abouticon2.png">
					<h4>物流优势</h4>
					<p>LOGISTICS ADVANTAGE</p>
					<a class="aaa" href="javascript:void(0)">了解详情</a>
				</div>
				
				<div class="solutit2">
					<h4>品牌优势</h4>
					<h5>BRAND ADVANTAGE</h5>
					<span></span>
					<p>内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息</p>
				</div>
			 </li>
			 <li>
				<div class="solutit">
					<img src="images/abouticon3.png">
					<h4>物流优势</h4>
					<p>LOGISTICS ADVANTAGE</p>
					<a href="javascript:void(0)">了解详情</a>
				</div>
				
				<div class="solutit2">
					<h4>品牌优势</h4>
					<h5>BRAND ADVANTAGE</h5>
					<span></span>
					<p>内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息</p>
				</div>
			 </li>
			 <li>
				<div class="solutit">
					<img src="images/abouticon1.png">
					<h4>物流优势</h4>
					<p>LOGISTICS ADVANTAGE</p>
					<a href="javascript:void(0)">了解详情</a>
				</div>
				
				<div class="solutit2">
					<h4>品牌优势</h4>
					<h5>BRAND ADVANTAGE</h5>
					<span></span>
					<p>内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息</p>
				</div>
			 </li>
		</ul>
	</div>
</div>


<script type="text/javascript">
$(function(){
    $('#solutions li').click(function(){
    	$('#solutions .solutit2').stop().animate({
            height:'0'

        },600);
        $(this).find('.solutit2').stop().animate({
            height:'300'
        },600);
    });
});
</script>
</body>
</html>








CSS代码(style.css):

*{font-family:"微软雅黑"}
body{background-color:#fff;width:100%;}
body,input,button,select,textarea{font-size:12px;color:#333;}
textarea{resize:none;}
body,ul,ol,li,dl,dd,p,h1,h2,h3,h4,h5,h6,form,img,fieldset,.pr,.pc{margin:0;padding:0;}
table{empty-cells:show;border-collapse:collapse;}
caption,th{text-align:left;font-weight:400;}
ul li,.xl li{list-style:none;}
h1,h2,h3,h4,h5,h6{font-size:1em;font-weight:normal;}
em,cite,i{font-style:normal;display:block;}
a{color:#666;text-decoration:none;transition:0.5s all;-webkit-transition:0.5s all;-moz-transition:0.5s all;-o-transition:0.5s all;}
a:hover{color:#cda484}
img{border:0;}
label{cursor:pointer;}
input:disabled{background-color:#fff;color:#666;}
textarea:disabled{background-color:#fff;color:#666;}
.cl:after{content:".";display:block;height:0;clear:both;visibility:hidden;!}
.cl{zoom:1;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
48.14 KB
Html Js 菜单导航特效4
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章