div css nowrap无换行
460
2024-04-04
JQuery实现简单的图片滑动切换特效
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>t图片的滑动</title> <meta charset="utf-8" /> <style type="text/css" > *{ margin:0; padding:0; } #main{ width:1089px; height:360px; margin:100px; background:url(../image/7.png); } ul li{ list-style:none ; width:100px; height:360px; float:left; } a{ color:#ffffff; text-decoration:none; } .txt{ width:100px; height:360px; float:left; background:rgb(182, 255, 0); } p{ font-family :"Arial.black",Gadugi.sans-serif ; font-size:18x; position:relative ; width:18px; font-weight:bold ; margin-top :120px; margin-left:48px; } .li1 { background: url( ../image/43.png); } .li2{background: url( ../image/42.png);} .li3{background: url( ../image/39.png);} .li4{background: url( ../image/47.png);} </style> </head> <body> <div id="main"> <ul> <li class=" li1"><a href="http://www.gimoo.net/t/1904/ "><div class=" txt"><p>风景1</p></div></a></li> <li class=" li2"><a href="http://www.gimoo.net/t/1904/ "><div class=" txt"><p>风景2</p></div></a></li> <li class=" li3"><a href="http://www.gimoo.net/t/1904/ "><div class=" txt"><p>风景3</p></div></a></li> <li class=" li4"><a href="http://www.gimoo.net/t/1904/ "><div class=" txt"><p>风景4</p></div></a></li> </ul> </div> <script type="text/javascript" src="http://www.gimoo.net/t/Jqurey/jquery.min.js"></script> <script > $('ul li').hover(function(){ $(this).stop(true).animate({ width: '789px' }, 500).siblings().stop(true).animate({width:'100'},500); }) </script> </body> </html>
jQuery图片从下往上滚动效果是一款jquery animate方法制作的图片从下往上滚动效果。
<!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 href="http://www.gimoo.net/t/1904/css/style.css" type="text/css" rel="stylesheet"/> <script type="text/javascript" src="http://www.gimoo.net/t/1904/js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.box .box1').mouseover(function(){ $(this).stop().animate({"top":"-514px"}, 200); }) $('.box .box1').mouseout(function(){ $(this).stop().animate({"top":"0"}, 200); }) }) </script> </head> <body> <div id="in_ct"> <--------in_ct开始----------> <div class="in_ct"> <--------in_ct1 开始----------> <div class="in_ct1"> <ul class="box"> <li> <div class="box1"> <div class="toll_img"><img src="http://www.gimoo.net/t/1904/images/in_img1.jpg" width="272" height="514"/></div> <div class="toll_info"><a href="http://www.gimoo.net/t/1904/5cbac37204e93.html" target="_blank"><img src="http://www.gimoo.net/t/1904/images/in_img1_ho.jpg" height="514" width="272" /></a></div> </div> </li> <li> <div class="box1"> <div class="toll_img"><img src="http://www.gimoo.net/t/1904/images/in_img2.jpg" width="272" height="514"/></div> <div class="toll_info"><a href="http://www.gimoo.net/t/1904/5cbac37204e93.html" target="_blank"><img src="http://www.gimoo.net/t/1904/images/in_img2_ho.jpg" height="514" width="272" /></a></div> </div> </li> <li> <div class="box1"> <div class="toll_img"><img src="http://www.gimoo.net/t/1904/images/in_img3.jpg" width="272" height="514"/></div> <div class="toll_info"><a href="http://www.gimoo.net/t/1904/5cbac37204e93.html" target="_blank"><img src="http://www.gimoo.net/t/1904/images/in_img3_ho.jpg" height="514" width="272" /></a></div> </div> </li> <li> <div class="box1"> <div class="toll_img"><img src="http://www.gimoo.net/t/1904/images/in_img4.jpg" width="272" height="514"/></div> <div class="toll_info"><a href="http://www.gimoo.net/t/1904/5cbac37204e93.html" target="_blank"><img src="http://www.gimoo.net/t/1904/images/in_img4_ho.jpg" height="514" width="272" /></a></div> </div> </li> </ul> </div> <--------in_ct1 结束----------> </div> <--------in_ct结束----------> </div> </body> </html>
上演示图
#免责声明#
本站[绿夏技术导航]提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序或内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件[admin@lxwl520.com]与我们联系进行删除处理。敬请谅解!