html5手機端觸屏滑動下拉數據加載更多



63 248 83



特效描述: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

加群請備注:從官網了解到

老夫子电子