博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
图片轮播——点击切换
阅读量:7240 次
发布时间:2019-06-29

本文共 1145 字,大约阅读时间需要 3 分钟。

效果图

HTML代码

    
广告图片轮播切换
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
<
>

jQuery代码

CSS代码

ul,li{padding: 0;margin: 0; list-style: none;}.adver{margin: 0 auto; width: 700px; overflow: hidden; height: 454px; position: relative; background: url("../images/adver01.jpg");}ul{position: absolute; bottom:10px; z-index: 100; width: 100%; text-align: center;}ul li{display: inline-block; font-size: 10px; line-height: 20px; font-family: "微软雅黑"; margin: 0 1px; width: 20px; height: 20px; border-radius: 50%; background: #333333; text-align: center; color: #ffffff;}.arrowLeft,.arrowRight{    position: absolute;    width: 30px;    background:rgba(0,0,0,0.2);    height: 50px;    line-height: 50px;    text-align: center;    top:200px;    z-index: 150;    font-family: "微软雅黑";    font-size: 28px;    font-weight: bold;    cursor: pointer;    display: none;}.arrowLeft{left: 10px;}.arrowRight{right: 10px;}li:nth-of-type(1){    background: orange;}

  

转载于:https://www.cnblogs.com/binglong180/p/7623566.html

你可能感兴趣的文章
Shell脚本的一些小技巧
查看>>
还不了解自动驾驶汽车?快来看看这份全景式的说明书
查看>>
一定能成功的Android NDK环境配置教程
查看>>
git指令
查看>>
Java Servlet Filter 详解
查看>>
左手VS PK 右手IDEA
查看>>
CI环境下开发Oauth2.0开放平台
查看>>
js实现千位分隔符
查看>>
KVM克隆的ubuntu12.04的虚拟机的基本配置
查看>>
lecture 3.2 problem set 3
查看>>
4-AI--Activity跳转动画
查看>>
(旧) 1- 大家一起学:Flask构建弹幕微电影网站-(一)-(三)合集:数据模型设计映射成表...
查看>>
vuex组件 vuex-persistedstate
查看>>
靠谱的 关闭Windows10自动更新
查看>>
Ocelot简易教程(二)之快速开始2
查看>>
Elide 4.3.1 发布,雅虎开源的应用数据 API 搭建平台
查看>>
[Docker]Docker镜像
查看>>
如何抓取WebClient、HttpWebRequest、WebRequest无法获取的网页源码,下面将为你解答...
查看>>
[HBase]HBase安装
查看>>
微服务 到底解决了什么问题?非用不可吗?
查看>>