dw的php选择滑动图片效果,页面图片浮动左右滑动效果的简单实现案例

6fe0a92e89dd6e4b3e7e54bec7a88b76.png

核心代码:

1.css:16sucai.css

html,body {

height: 100%;

margin: 0px;

padding: 0px;

}

a {outline: none;}

img{ border:0;}

a img {vertical-align: top;}

a img.last {margin-right: 0; }

.box {

width: 850px;

height: auto;

overflow: hidden;

background: #666;

margin-top: 10px;

margin-right: auto;

margin-bottom: 10px;

margin-left: auto;

padding-top: 10px;

padding-right: 0;

padding-bottom: 0;

padding-left: 10px;

}

.box ul {

margin: 0px;

padding: 0px;

float: left;

list-style-type: none;

}

.box li {

width: 150px;

height: 100px;

float: left;

cursor: pointer;

display: inline;

margin: 0 10px 10px 0;

border: 5px solid #333;

}

#bg {

width: 100%;

height: 898px;

position: absolute;

left: 0px;

top: 0px;

background: #000;

filter: alpha(opacity : 50);

opacity: 0.5;

display: none;

}

#bg1 {

width: 100%;

height: 100%;

position: absolute;

left: 0px;

top: 0px;

background: #000;

filter: alpha(opacity : 50);

opacity: 0.5;

display: none;

}

#bottom {

width: 215px;

height: 50px;

position: absolute;

left: 50%;

bottom: 0px;

margin: 0 0 0 -107px;

border: 1px solid #232323;

background: #444;

padding: 1px;

z-index: 1;

display: none;

}

#bottom ul {

width: 100%;

height: 100%;

margin: 0px;

padding: 0px;

list-style-type: none;

background: #000;

}

#bottom li {

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

float: left;

display: inline;

margin: 8px 0 0 18px;

cursor: pointer;

}

#bottom li.prev {

width: 30px;

height: 33px;

background-position: 0 0;

}

#bottom li.next {

width: 30px;

height: 33px;

background-position: -35px 0;

}

#bottom li.img {

width: 30px;

height: 33px;

background-position: -106px 0;

}

#bottom li.close {

width: 31px;

height: 33px;

background-position: -70px 0;

}

#frame {

background: #fff;

padding: 3px;

position: absolute;

z-index: 2;

display: none;

filter: alpha(opacity : 0);

opacity: 0;

text-align: center;

}

#bottom1 {

width: 215px;

height: 50px;

position: absolute;

left: 50%;

bottom: 0px;

margin: 0 0 0 -107px;

border: 1px solid #232323;

background:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值