zoukankan      html  css  js  c++  java
  • jQuery图片转动

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TxtBox.aspx.cs" Inherits="jQuery.TxtBox1" %>
    
    <%@ Register Src="~/WebUserControl1.ascx" TagPrefix="uc1" TagName="WebUserControl1" %>
    <%@ Register TagPrefix="Hi" Namespace="jQuery" Assembly="jQuery" %>
    
    
    <!DOCTYPE html>
    <!doctype html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>
            *{
                padding: 1000;
                margin: 0;
            }
            ul li{list-style-type: none}
            #banner{
                 800px;
                height: 400px;
                overflow:hidden;
            }
            #banner ul{
                 8600px;
            }
            #banner ul>li{
                 800px;
                height: 400px;
                float: left;
            }
            img{
                max- 100%;
            }
        </style>
    </head>
    <body>
        <div id="banner">
            <ul>
                <li><img src="200x200.jpg" alt="" width="800px" height="400px" />1</li>
                <li><img src="APP載入封面圖.png" alt="" width="800px" height="400px"/></li>
                <li><img src="200x200.jpg" alt="" width="800px" height="400px"/></li>
                <li><img src="200x200.jpg" alt="" width="800px" height="400px"/></li>
            </ul>
        </div>
        <input type="button" value="left" class="left"/>
        <input type="button" value="right" class="right"/>
     
     
        <script src="jquery-3.3.1.min.js"></script>
        <script>
            
            $(function () {
                setInterval(bbb,2000)
                function bbb() {
                    $("#banner ul").css('marginLeft', '-800px');
                    $("#banner ul>li").eq(3).prependTo($("#banner ul"));
                    $("#banner ul").animate({ marginLeft: "0px" }, 600);
                }
               
            })
        </script>
    </body>
    </html>
    

      效果:https://www.cnblogs.com/dcrBook/p/9930938.html

  • 相关阅读:
    My 1st webUI try
    option(recompile)
    Add&Delete WindowService
    powershell
    bootstrap模态框,等待遮盖层
    spring-boot通过@Scheduled配置定时任务
    bootstrap-table的一些参数配置
    $('xx')[0].files[0]的意思
    Go国内镜像
    基础语法-defer使用(12)
  • 原文地址:https://www.cnblogs.com/dcrBook/p/9930938.html
Copyright © 2011-2022 走看看