html图片滚动浏览,ul结合CSS制作网页相册滑动浏览效果

别开生面纯CSS实现相册预览 ximicc.com

body{

font-size:12px;

color: #CC0000;

}

p {

background-color: #F1FAFE;

}

#gallery {

width:495px;

height:240px;

border: 1px solid #888;

margin:0 auto;

padding:0;

list-style:none;

background:#fff url(/files/080628/1_133958.gif);

}

#gallery li {

float: left;

}

#gallery li a {

display: block;

width: 28px;

height: 240px;

border-right: #fff 1px solid;

overflow: hidden;

cursor: default;

}

#gallery li a img {

border:0;

}

#gallery li a:hover {

width: 320px;

}

#gallery2 {

margin:0 auto;

padding:0;

list-style-type:none;

overflow:hidden;

width:572px;

height:238px;

border:1px solid #000;

background:#fff url(/files/080628/1_134055.gif);

}

#gallery2 li {

float:left;

}

#gallery2 li a {

display:block;

height:30px;

width:572px;

float:left;

overflow: hidden;

text-decoration:none;

border-bottom:1px solid #000;

cursor:default;

}

#gallery2 li a img {

border:0;

}

#gallery2 li a:hover {

background:#eee;

height:144px;

}

#gallery2 li a:hover img {

height:144px;

}

-->

  • ximicc

  • ximicc

  • ximicc

  • ximicc

[Ctrl A 全部选择 提示:你可先修改部分代码,再按运行]

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值