jquery设计轮播图

jquery设计轮播图,第1张

css布局
 
        
            
            
            
            
            
            
        
        
            >
            <
        
        
            
            
            
            
            
        
    
 * {
        padding: 0;
        margin: 0;
        list-style: none;
        text-decoration: none;
    }
    
    #banner {
        width: 1000px;
        height: 460px;
        overflow: hidden;
        position: relative;
        margin: 100px auto 0;
    }
    
    #imgList a {
        float: left;
        width: 100%;
        height: 100%;
    }
    
    .item {
        position: absolute;
    }
    
    .item img {
        width: 100%;
        height: 100%;
    }
    
    #icon div {
        width: 30px;
        height: 45px;
        line-height: 40px;
        font-size: 48px;
        text-align: center;
        color: #ddd;
        position: absolute;
        top: 45%;
        padding-right: 5px;
    }
    
    #icon #prev {
        right: 20px;
    }
    
    #icon #next {
        left: 10px;
    }
    
    #icon div:hover {
        background: #000;
        opacity: .4;
        color: #fff;
        border-radius: 5px;
    }
    
    #iconList {
        position: absolute;
        right: 20px;
        bottom: 10px;
    }
    
    .tab {
        float: left;
        width: 6px;
        height: 6px;
        border: 2px solid rgba(184, 178, 182, .8);
        border-radius: 100%;
        line-height: 6px;
        background: #999497;
        cursor: pointer;
        margin-right: 10px;
    }
    
    .active {
        background-color: #fff;
        border-color: #999497;
    }
js: 
    

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1320330.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-11
下一篇2022-06-11

发表评论

登录后才能评论

评论列表(0条)

    保存