html5手机端触屏滑动下拉数据加载更多



60 238 80



特效描述:html5手机端 触屏滑动 下拉数据 加载更多,html5 iScroll下拉/上拉数据加载更多

代码结构

1. 引入CSS

<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/Message.css" rel="stylesheet" type="text/css">

2. 引入JS

<script type="text/javascript" src="js/iscroll.js" tppabs="http://cubiq.org/dropbox/iscroll4/src/iscroll.js"></script>

3. HTML代码

<header>
<a href="javascript:history.back();" style="float:left;margin-left:2%;"><img src="images/return.png" width="20" height="20"></a>
        <p>消息列表</p>
    <!-- 点击刷新本页面 -->
        <a href="#">
            <img src="images/Refresh.png" width="20" height="20"> </a>
</header>
<div id="wrapper">
	<div id="scroller">
		<div id="pullDown">
			<span class="pullDownIcon"></span><span class="pullDownLabel">下拉刷新...</span>
		</div>
		<ul id="thelist">
				<li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
		<li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
            <li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
            <li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
            <li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
            <li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
            <li>
                <section>
       <div class="list">
    <a href="message_detail.html">
       <div class="icon_tou">
             <img src="images/icon_tx001.png" width="70" height="70">
        </div>
    <ul>
            <li class="list_one">
                <h1>电商智慧宝</h1>
                     <span>3条未读</span> 
                               </li>
            <li class="list_tow">
<span>恭喜您,又卖出一件商品,获30元</span>
                </li>
    <li class="list_three">
        <span>2015-5-24</span><span>13:56:21</span> 
        </li>  
        </ul>
                </a>
             </div>         
        </section>  
            </li>
		</ul>
		<div id="pullUp">
			<span class="pullUpIcon"></span><span class="pullUpLabel">向上滑动加载更多...</span>
		</div>
	</div>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 延迟加载 无限加载 延迟 加载 图片延迟加载 图片延迟 图片加载 图片滑动 图片滑块

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到