html小米官网轮播图js,jquery轮播图-小米网效果

a935a099f4fe1238d2e2bf1164572a0f.png

8d356dd126880af192ae902c3e671bd1.png

插件描述:使用 jquery slides实现小米轮播图效果

实现代码

引用jquery.js 和slides.js

html

 了解小米3

进入小米网

小米手机3视频>>

css* {

margin: 0;

padding: 0;

list-style-type: none;

}

a, img {

border: 0;

text-decoration: none;

}

body {

font-family: "微软雅黑", "宋体", "黑体", Arial;

}

/* focus */

.xmSlide {

background-color: #022c5e;

}

.xmSlide_01 {

height: 639px;

background: url(images/focus01.jpg) no-repeat center center;

}

.xmSlide_02 {

height: 639px;

background: url(images/focus02.jpg) no-repeat center center;

}

.xmSlide_03 {

height: 639px;

background: url(images/focus03.jpg) no-repeat center center;

}

.xmSlide-pagination {

background-color: #fff;

padding-top: 10px;

text-align: center;

height: 20px;

}

.xmSlide-pagination li {

display: inline-block;

width: 12px;

height: 12px;

margin: 0 5px;

}

.xmSlide-pagination li a {

display: inline-block;

width: 12px;

height: 12px;

text-indent: -9999px;

background-color: #ccd1d9;

border-radius: 8px;

-moz-border-radius: 8px;

-webkit-border-radius: 8px;

overflow: hidden;

}

.xmSlide-pagination li a.active {

background-color: #656d78;

}

.xmSlide-control {

overflow: hidden;

}

.btn {

width: 950px;

position: absolute;

left: 50%;

margin-left: -475px;

top: 0;

z-index: 9999;

}

.btn span {

display: block;

text-align: right;

padding-right: 158px;

}

.btn p {

padding: 410px 78px 0 0;

text-align: right;

}

.btn p a {

width: 133px;

height: 36px;

display: inline-block;

margin-right: 10px;

line-height: 36px;

font-size: 14px;

color: #fff;

text-align: center;

-webkit-border-radius: 4px;

-moz-border-radius: 4px;

border-radius: 4px;

}

.btn p a.item1 {

background-color: #ff9000;

-webkit-box-shadow: 0 2px rgba(13,47,88,.19);

-moz-box-shadow: 0 2px rgba(13,47,88,.19);

box-shadow: 0 2px rgba(13,47,88,.19);

}

.btn p a.item2 {

background-color: #5e95e1;

-webkit-box-shadow: 0 2px rgba(13,47,88,.19);

-moz-box-shadow: 0 2px rgba(13,47,88,.19);

box-shadow: 0 2px rgba(13,47,88,.19);

}

js

$(function(){

$("#xmSlide").xmSlide({

width: 950,

height: 639,

responsiveWidth:710,

pagination: {

effect: "fade"  //可换成"slide"

},

effect: {

fade: {

speed: 400

}

},

play: {

effect: "fade", //可换成"slide"

interval: 4000,

auto: true,

pauseOnHover: true,

restartDelay: 2500

}

});

});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值