jQuery:书籍展示效果(水平滚动)

本文介绍了如何使用jQuery创建一个书籍展示效果,通过水平滚动展示HTML结构中的书籍信息。涉及HTML、CSS、XML以及jQuery代码的详细实现,特别地,为确保IE6兼容性,在HTML中添加了特定代码。要查看完整XML代码,需参考外部链接。
摘要由CSDN通过智能技术生成

具体代码实现如下:(源代码下载

1.html代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div id="books">
  <div class="overclear buttons"> 
    <a href="#" class="prev"><img src="images/books_prev.gif" alt="Previous" /></a>
    <div class="showing"><!-- showing --></div>
    <a href="#" class="next"><img src="images/books_next.gif" alt="Next" /></a> 
  </div>
  <div class="overclear top">
    <img src="images/books_left_top.gif" alt="" class="float_left" />
    <img src="images/books_right_top.gif" alt="" class="float_right" />
  </div>
  <div class="inner">
    <ul class="overclear">
      <li class="loader"><!-- loader --></li>
    </ul>
  </div>
  <div class="overclear btm">
    <img src="images/books_left_btm.gif" alt="" class="float_left" />
    <img src="images/books_right_btm.gif" alt="" class="float_right" />
  </div>
</div>

2.CSS代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
* {
         margin:0; padding:0;}
body {
         font:12px/16px Verdana, Geneva, sans-serif; color:#000;}
 
img {
         border:0;}
a {
         text-decoration:none; outline:none; hide-focus:expression(this.hideFocus=true);}
ul {
         list-style:none;}
 
#books {
         width:500px;}
.prev img, .next img {
         width:40px; height:30px;}
.top img, .btm img {
         width:20px; height:20px;}
.overclear {
         overflow:hidden; height:1%;}
.float_left {
         float:left;}
.float_right {
         float:right;}
.top {
         background:url(images/books_top.gif) repeat-x;}
.btm {
         background:url(images/books_btm.gif) repeat-x;}
 
.buttons {
         position:relative; height:32px; margin-bottom:5px;}
.prev {
         position:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值