zoukankan      html  css  js  c++  java
  • div 文章内容自动分屏显示

    <head runat="server">
        <title></title>
        <script language="javascript" type="text/javascript">
    
            var height = 0;
    
            function previousPage() {
                if (height > 0) {
                    height -= 280;
                }
                var e = document.getElementById("content");
                e.scrollTop = height;
            }
    
            function nextPage() {
                height += 280;
                var e = document.getElementById("content");
                e.scrollTop = height;
            }
        </script>
    </head>
    <body>
        <div id="content" runat="server" style=" 500px; height: 400px; overflow: scroll;
            overflow-x: hidden; overflow-y: hidden;">
        </div>
        <div>
            <input type="button" value="上一页" onclick="previousPage();" id="btnPreviousPage" />
            <input type="button" value="下一页" onclick="nextPage();" id="btnNextPage" />
        </div>
    </body>
    

    触摸屏飘过,搞死了

  • 相关阅读:
    增加网站内容步骤
    简单使用
    dedecms的讲解 要求
    shop34-3-自动加载实现
    shop34-2-运转-平台分发
    shop34-1-目录布局
    match_controller
    match_model
    match_mvc
    laravel 路由
  • 原文地址:https://www.cnblogs.com/zhoudemo/p/3242175.html
Copyright © 2011-2022 走看看