最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

jQuery做出垂直半透明手风琴效果

来源:动视网 责编:小OO 时间:2020-11-27 19:52:03
文档

jQuery做出垂直半透明手风琴效果

运行效果图。为大家分享的jQuery半透明抽屉式手风琴代码如下:,<;head>;<;meta http-equiv=";Content-Type";content=";text/html;charset=utf-8";/>;<;title>;jQuery半透明抽屉式手风琴代码<;/title>;<;style type=";text/css";>;*{margin:0;padding:0;list-style-type:none;}a,0,0,500).siblings().stop(true).animate({width:";100px";}。
推荐度:
导读运行效果图。为大家分享的jQuery半透明抽屉式手风琴代码如下:,<;head>;<;meta http-equiv=";Content-Type";content=";text/html;charset=utf-8";/>;<;title>;jQuery半透明抽屉式手风琴代码<;/title>;<;style type=";text/css";>;*{margin:0;padding:0;list-style-type:none;}a,0,0,500).siblings().stop(true).animate({width:";100px";}。
 这次给大家带来jQuery做出垂直半透明手风琴效果,jQuery做出垂直半透明手风琴效果的注意事项有哪些,下面就是实战案例,一起来看一下。

运行效果图:

为大家分享的jQuery半透明抽屉式手风琴代码如下

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery半透明抽屉式手风琴代码</title>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;text-decoration:none;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}
.pic{width:1100px;height:430px;margin:70px auto 0;}
.pic ul li{list-style:none;width:100px;height:429px;float:left;}
.pic .l1{background-image:url(img/1.jpg);}
.pic .l2{background-image:url(img/2.jpg);}
.pic .l3{background-image:url(img/3.jpg);}
.pic .l4{background-image:url(img/4.jpg);width:789px;}
.txt{width:100px; height:429px;background:#000;filter:alpha(opacity=50);background:rgba(0,0,0,.5);}
.txt p{color:#fff;font-family:"微软雅黑";float:left;position:relative;}
.txt .p1{font-size:12px;width:12px;margin:25px 25px 0 20px;}
.txt .p2{font-size:14px;width:14px;margin-top:25px;}
</style>
</head>
<body>
<p class="pic">
 <ul>
 <li class="l1">
 <a href="http://www.gxlcms.com" target="_blank">
 <p class="txt">
 <p class="p1">作者 : 走天涯</p>
 <p class="p2">我的个人拉萨之旅||故事之城</p>
 </p>
 </a>
 </li>
 <li class="l2">
 <a href="http://www.gxlcms.com" target="_blank">
 <p class="txt">
 <p class="p1">作者 : 走天涯</p>
 <p class="p2">我的个人拉萨之旅||故事之城</p>
 </p>
 </a>
 </li>
 <li class="l3"> 
 <a href="http://www.gxlcms.com" target="_blank">
 <p class="txt">
 <p class="p1">作者 : 走天涯</p>
 <p class="p2">我的个人拉萨之旅||故事之城</p>
 </p>
 </a>
 </li>
 <li class="l4"> 
 <a href="http://www.gxlcms.com" target="_blank">
 <p class="txt">
 <p class="p1">作者 : 走天涯</p>
 <p class="p2">我的个人拉萨之旅||故事之城</p>
 </p>
 </a>
 </li>
 </ul>
</p>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(".pic ul li").hover(function(){
 $(this).stop(true).animate({width:"789px"},500).siblings().stop(true).animate({width:"100px"},500);
});
</script>
</body>
</html>

相信看了本文案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!

推荐阅读:

Jquery实现打开页面随机选择切换

jQuery做出响应式图片轮播效果

文档

jQuery做出垂直半透明手风琴效果

运行效果图。为大家分享的jQuery半透明抽屉式手风琴代码如下:,<;head>;<;meta http-equiv=";Content-Type";content=";text/html;charset=utf-8";/>;<;title>;jQuery半透明抽屉式手风琴代码<;/title>;<;style type=";text/css";>;*{margin:0;padding:0;list-style-type:none;}a,0,0,500).siblings().stop(true).animate({width:";100px";}。
推荐度:
标签: 透明 效果 手风琴
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top