完整页面代码如下,赋值到html页面用浏览器打开就可以预览图片轮播效果:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>

<style type="text/css">

/*图片轮播*/

.box{

margin-top: 20px;

margin-left: 40px;

height: 180px;

background-color: white;

position: relative;

float: left;

}

.list{

width: 300px;

height: 150px;

overflow: hidden;

margin: 5px;

}

.next{

right: 0;

}

.list li{

position: absolute;

top: 0;

left: 0;

list-style: none;

opacity: 0;

transition: all 0.3s ease-out;

}

.list img{

border: 1px solid #DDD;

float: left;

}

.list .p1{

transform:translate3d(-100px,0,0) scale(0.70);

}

.list .p2{

transform:translate3d(0px,0,0) scale(0.70);

transform-origin:0 50%;

opacity: 0.8;

z-index: 2;

}

.list .p3{

transform:translate3d(100px,0,0) scale(1);

z-index: 3;

opacity: 1;

}

.list .p4{

transform:translate3d(200px,0,0) scale(0.70);

transform-origin:100% 50%;

opacity: 0.8;

z-index: 2;

}

.list .p5{

transform:translate3d(300px,0,0) scale(0.70);

}

.list .p6{

transform:translate3d(400px,0,0) scale(0.70);

}

.list .p7{

transform:translate3d(500px,0,0) scale(0.70);

}

.buttons{

/*  width: 600px;*/

height: 30px;

bottom: 0;

margin-left: 0px;

text-align: center;

padding-top: 10px;

}

.buttons a{

display: inline-block;

width: 35px;

height: 5px;

padding-top: 4px;

cursor: pointer;

}

.buttons span{

display: block;

width: 35px;

height: 1px;

background: #DDDDDD;

}

.buttons .blue{

background: #62a60a;

}

/*图片轮播结束*/

</style>

<title>图片轮播演示</title>

<script>

js代码:http://www.yayihouse.com/yayishuwu/chapter/2467

</script>

</head>

<body>

<div  class="box">

<div class="list" >

<ul>

<li class="p1"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150" /></a></li>

<li class="p2"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150"  /></a></li>

<li class="p3"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150"  /></a></li>

<li class="p4"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150"  /></a></li>

<li class="p5"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150"  /></a></li>

<li class="p6"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150"  /></a></li>

<li class="p7"><a href=""><img src="/static/images/survey_02.png" alt=""   width="300" height="150"  /></a></li>

</ul>

</div>

<div class="buttons">

<a href="javascript:;"><span></span></a>

<a href="javascript:;"><span></span></a>

<a href="javascript:;"><span></span></a>

<a href="javascript:;"><span></span></a>

<a href="javascript:;"><span></span></a>

<a href="javascript:;"><span></span></a>

<a href="javascript:;"><span></span></a>

</div>

</div>

</body>

</html>

页面图片轮播完整代码相关推荐

  1. 首页轮转html代码,js制作网站首页图片轮播特效代码

    本文实例为大家分享了使用js制作一般网站首页图片轮播效果的具体代码,供大家参考,具体内容如下 图片轮播 .warp{ width: 600px; height: 750px; position: re ...

  2. 横向全屏滑动插件_【案例】JQuery横向手风琴图片轮播切换代码

    点击上方[我分享我快乐]→[...]右上角→[设为星标⭐]即可第一时间获取最新设计资源 哈喽大家好,又到了每周二经典案例环节啦~同学们还想了解哪些网页知识 今天段老师给同学们带来的是JQuery横向手 ...

  3. 响应式banner图片轮播布局代码

    响应式banner图片轮播布局代码 基于jQuery制作企业家具网站首页banner响应式图片轮播,支持带左右按钮控制图片淡出淡现切换效果.手机自适应屏幕大小.修改:添加json动态数据轮播图片. 演 ...

  4. html轮播带缩略图,js带缩略图的图片轮播效果代码分享

    本文实例讲述了js带缩略图的图片轮播效果.分享给大家供大家参考.具体如下: 这是一款基于javaScript实现带缩略图的图片轮播特效代码,实现过程很简单. 运行效果图:--------------- ...

  5. html图片轮播代码渐隐,js淡入淡出的图片轮播效果代码分享

    本文实例讲述了淡入淡出的js图片轮播效果代码.分享给大家供大家参考.具体如下: 运行效果图:----------------------查看效果----------------------- 小提示: ...

  6. 图片轮播php代码下载,jQuery带进度条滚动图片轮播代码

    jQuery带进度条滚动图片轮播代码 jQuery带进度条滚动图片轮播代码是一款带左右箭头按钮控制图片滚动轮播,标题和进度条显示效果. $(document).ready(function(e) { ...

  7. 无需编程,我教你打造H5页面图片轮播效果

    图片轮播是手机App和手机网页上常见的功能,用于在有限的网页空间内展示一组产品图片或者照片,同时还有非常吸引人的动画效果.现在,H5页面和App上也可以加入图片轮播功能了,希望这个图片轮播效果能够给你 ...

  8. 流行的广告轮播(图片轮播)JS代码

    <HTML><HEAD><TITLE>首页大焦点图-PConline</TITLE> <META http-equiv=Content-Type ...

  9. html正方形轮播,图片轮播效果代码(html)

    来源站点:w3cschool 来源网址:https://www.w3cschool.cn/lwp2e2/7cz212kd.html 安装本地测试后的源码: /p> "http://ww ...

最新文章

  1. 是时候不把智能手机叫做电话了:移动AI时代来临!
  2. linux下编译make文件报错“/bin/bash^M: 坏的解释器,使用grep快速定位代码位置
  3. qt 程序windows 上发布
  4. php4 apache 配置,[开发环境配置]windows下php4+mysql4+apache2开发环境配置
  5. Linux下golang的编译,golang Linux下编译环境搭建
  6. 数据分析工具选型3大秘诀,Excel竟未上榜
  7. WordPress post和page的区别
  8. python3.7怎么安装turtle_Python turtle安装和使用教程
  9. 软件GUI测试中的关注点
  10. java中vector和list_java中vector和list的区别
  11. 2017-2018 ACM-ICPC, NEERC A题Automatic Door 挺棘手的模拟
  12. c++代码打印爱心图(适用初学者)
  13. 从腾讯云迁移到腾讯云,开心消消乐的云端迁移战事
  14. JAVA实现浪漫流星表白(520到了,快来看看程序员是怎么表白的吧)
  15. Linux 的日志服务器 详解(Rsyslog)
  16. 王权小福贵儿的Java学习笔记
  17. 【泛型,数据结构,List接口,Set接口】
  18. python数据分析 - numpy | ndarray数组 | numpy常用函数
  19. MySQL的错误1264, 1406, 1329 ,1101 的修改方法
  20. Eclipse中设置jsp文件 字体大小

热门文章

  1. My 英语 and 思想 blog
  2. 国内外智慧公路建设统观
  3. 牛津计算机本科申请,为什么牛津和剑桥不能同时申请?本科报哪一个的录取机会更大?...
  4. 测试人员必备的职业素养
  5. 单片机设计_车牌识别系统(STM32 OV7670 TFT)
  6. 彻底理解 JS Event Loop(浏览器环境)
  7. 过来人看PMP证书:究竟含金量有多高?
  8. mac idea 常用快捷键总结
  9. 用matlab证明向量组等价,线性代数常见面试题
  10. 40w+传播量H5页面微营销案例分析