国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Web開發(fā)之輪播圖

這篇具有很好參考價值的文章主要介紹了Web開發(fā)之輪播圖。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

輪播圖是媒體組件的一種,支持自定義輪播圖片、輪播動畫效果等,能夠在可視化應(yīng)用中展示多張圖片輪流播放的效果。常用于各種網(wǎng)頁中,本文將展示兩類輪播圖。

一、效果展示

?

?Web開發(fā)之輪播圖

?Web開發(fā)之輪播圖

Web開發(fā)之輪播圖?

Web開發(fā)之輪播圖?

二、文件架構(gòu)

? ? ? ? 輪播圖?

? ? ? ? ? ? ? ? -css

? ? ? ? ? ? ? ? ? ? ? ? -rotation_chart.css

? ? ? ? ? ? ? ? -less

????????????????????????rotation_chart.less

? ? ? ? ? ? ? ? -js

????????????????????????rotation_chart.js

????????????????????????rotation_chart1.js

?三、代碼

1.html框架結(jié)構(gòu)

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>輪播圖</title>
    <link rel="stylesheet" href="./css/rotation_chart.css">
    <!-- 字體圖標(biāo) -->
    <link rel="stylesheet" href="./lib/icommon/style.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-size: 14px;
        }

        li {
            list-style: none;
        }
    </style>
</head>

<body>
    <!-- 輪播圖1 -->
    <section class="rotation_chart">
        
        <div class="container">
            <!-- 圖片 -->
            <div class="chart_box">
                <ul>
                    <li>
                        <a href="">
                            <img src="./upload/banner01.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner02.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner03.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner04.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner05.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner06.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner07.jpg" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/banner08.jpg" alt="">
                        </a>
                    </li>
                </ul>
            </div>
            <!-- 原點 -->
            <p class="spot">

            </p>
            <!-- 左右鍵 -->
            <a href="###" class="left_btn btn">?</a>
            <a href="###" class="right_btn btn">?</a>
        </div>
    </section>
    <!-- 輪播圖2 -->
    <section class="rotation_chart1">
        <div class="container">
            <!-- 圖片 -->
            <div class="chart_box">
                <ul>
                    <li>
                        <a href="">
                            <img src="./upload/10055.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10056.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10057.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10058.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10059.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10060.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10062.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10063.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10064.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./upload/10065.jpg" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            風(fēng)靡一時
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            PSY.P
                        </a>
                    </li>
                    
                </ul>
            </div>
            <!-- 左右鍵 -->
            <a href="###" class="left_btn btn">?</a>
            <a href="###" class="right_btn btn">?</a>
        </div>

    </section>
</body>
<script src="./js/rotation_chart.js"></script>
<script src="./js/rotation_chart1.js"></script>
</html>

注:里面有字體圖標(biāo),需要手動修改,位置在左右鍵處

2.css裝飾

rotation_chart.less,此處為less文件,在該文件里可以清晰的瀏覽結(jié)構(gòu)以及方便的修改代碼,也可直接使用下面的css文件

.rotation_chart {
    height: 420px;
    background: url("../upload/bg01.jpg");
    background-size: 6000px;

    .container {
        position: relative;
        width: 1080px;
        height: 420px;
        margin: 0 auto;

        .chart_box {
            overflow: hidden;
            position: relative;
            width: 1080px;
            height: 420px;

            ul {
                display: flex;
                position: absolute;
                left: 0;
                width: 1000%;
            }
        }

        .spot {
            position: absolute;
            left: 50%;
            bottom: 10px;
            transform: translateX(-50%);

            i {
                cursor: pointer;
                display: inline-block;
                width: 6px;
                height: 6px;
                margin-right: 20px;
                background-color: #ccc;
                border-radius: 50%;
                font-size: 0px;
            }
        }

        .btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            display: inline-block;
            width: 37px;
            height: 63px;
            font-family: 'icomoon';
            font-size: 45px;
            color: #ccc;
            line-height: 63px;
            font-weight: 400;
        }

        .left_btn {
            display: none;
            left: 0px;
        }

        .right_btn {
            display: none;
            right: 0;
        }

        &:hover .right_btn,
        &:hover .left_btn {
            display: block;
        }
    }
}

.rotation_chart1 {
    position: relative;
    width: 729px;
    height: 186px;
    margin: 0 auto;
    margin-top: 20px;
    background-color: #F5F5F5;
    border: 1px solid #ccc;

    .container {
        position: relative;

        .chart_box {
            position: relative;
            overflow: hidden;
            width: 645px;
            height: 186px;
            margin: 0 auto;
            margin-top: 25px;

            ul {
                position: absolute;
                left: 0px;
                display: flex;
                height: 150px;

                li {
                    width: 120px;
                    height: 100px;
                    padding-right: 20px;
                    margin-right: 10px;
                    background: url("../img/精靈圖/10023.png") no-repeat 0 -569px;

                    img {
                        width: 100px;
                    }
                }
            }

        }

        .btn {
            position: absolute;
            top: 40%;
            transform: translateY(-50%);
            display: inline-block;
            width: 37px;
            height: 63px;
            font-family: 'icomoon';
            font-size: 45px;
            color: #ccc;
            line-height: 63px;
            font-weight: 400;

        }

        .left_btn {
            left: 0;
        }

        .right_btn {
            right: 0;
        }
    }

}

rotation_chart.css?

.rotation_chart {
  height: 420px;
  background: url("../upload/bg01.jpg");
  background-size: 6000px;
}
.rotation_chart .container {
  position: relative;
  width: 1080px;
  height: 420px;
  margin: 0 auto;
}
.rotation_chart .container .chart_box {
  overflow: hidden;
  position: relative;
  width: 1080px;
  height: 420px;
}
.rotation_chart .container .chart_box ul {
  display: flex;
  position: absolute;
  left: 0;
  width: 1000%;
}
.rotation_chart .container .spot {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
}
.rotation_chart .container .spot i {
  cursor: pointer;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 20px;
  background-color: #ccc;
  border-radius: 50%;
  font-size: 0px;
}
.rotation_chart .container .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 37px;
  height: 63px;
  font-family: 'icomoon';
  font-size: 45px;
  color: #ccc;
  line-height: 63px;
  font-weight: 400;
}
.rotation_chart .container .left_btn {
  display: none;
  left: 0px;
}
.rotation_chart .container .right_btn {
  display: none;
  right: 0;
}
.rotation_chart .container:hover .right_btn,
.rotation_chart .container:hover .left_btn {
  display: block;
}
.rotation_chart1 {
  position: relative;
  width: 729px;
  height: 186px;
  margin: 0 auto;
  margin-top: 20px;
  background-color: #F5F5F5;
  border: 1px solid #ccc;
}
.rotation_chart1 .container {
  position: relative;
}
.rotation_chart1 .container .chart_box {
  position: relative;
  overflow: hidden;
  width: 645px;
  height: 186px;
  margin: 0 auto;
  margin-top: 25px;
}
.rotation_chart1 .container .chart_box ul {
  position: absolute;
  left: 0px;
  display: flex;
  height: 150px;
}
.rotation_chart1 .container .chart_box ul li {
  width: 120px;
  height: 100px;
  padding-right: 20px;
  margin-right: 10px;
  background: url("../img/精靈圖/10023.png") no-repeat 0 -569px;
}
.rotation_chart1 .container .chart_box ul li img {
  width: 100px;
}
.rotation_chart1 .container .btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  display: inline-block;
  width: 37px;
  height: 63px;
  font-family: 'icomoon';
  font-size: 45px;
  color: #ccc;
  line-height: 63px;
  font-weight: 400;
}
.rotation_chart1 .container .left_btn {
  left: 0;
}
.rotation_chart1 .container .right_btn {
  right: 0;
}

3.js動態(tài)效果

//為防止出現(xiàn)錯誤,將js部分分為兩個

rotation_chart.js

//元素
var rotation_chart = document.querySelector(".rotation_chart");
var chart_box = rotation_chart.querySelector(".chart_box")
var ul = chart_box.querySelector("ul")
var spot = rotation_chart.querySelector(".spot");
//按鈕-
var left_btn = rotation_chart.querySelector(".left_btn");
var right_btn = rotation_chart.querySelector(".right_btn");
//數(shù)據(jù)
var banner_width = 1080;
var flag = 1;//輪播圖
var flag1 = 0;//控制點
var timer = null;
var url = "/04-網(wǎng)易云音樂/"

//事件
//.輪播圖1
timer = setInterval(function () {
    right_btn.click()
}, 2000)

// .鼠標(biāo)停留
chart_box.addEventListener("mouseover", function () {

    clearInterval(timer)
})
chart_box.addEventListener("mouseout", function () {
    timer = setInterval(function () {
        right_btn.click()
    }, 2000)
})
//.右鍵
right_btn.addEventListener("click", function () {
    if (flag == ul.children.length - 1) {
        ul.style.left = -730 + "px"
        flag = 1;

    }

    flag++;

    animate(ul, -flag * banner_width);
    //背景
    if (flag == 9) {
        // 這里容易因路徑問題而出現(xiàn)錯誤,因此要查看缺少的部分,手動添加
        rotation_chart.style.background = `url("..${url}upload/bg0${1}.jpg")`;
    }
    else {
        rotation_chart.style.background = `url("..${url}upload/bg0${flag}.jpg")`;

    }
    //同步點操作
    flag1++;
    if (flag1 == ul.children.length - 2) {
        flag1 = 0;
    }
    for (let index = 0; index < spot.children.length; index++) {
        spot.children[index].style.backgroundColor = "#ccc";
    }
    spot.children[flag1].style.backgroundColor = "#C20C0C";
})
left_btn.addEventListener("click", function () {
    if (flag == 0) {
        ul.style.left = -730 * (ul.children.length - 2) + "px"
        flag = (ul.children.length - 2)
    }
    flag--;
    animate(ul, -flag * banner_width);
    rotation_chart.style.background = `url("../upload/bg0${flag}.jpg")`;
    //同步點操作
    flag1--;
    if (flag1 < 0) {
        flag1 = ul.children.length - 3;
    }
    for (let index = 0; index < spot.children.length; index++) {
        spot.children[index].style.backgroundColor = "#ccc";
    }
    spot.children[flag1].style.backgroundColor = "#C20C0C";

})
//函數(shù)
//.創(chuàng)建圓點

function createSpot() {
    // eleCope()
    for (let index = 0; index < ul.children.length; index++) {
        var i = document.createElement("i");
        i.setAttribute("index", index);
        if (index == 0) {
            i.style.backgroundColor = "#C20C0C";
        }
        i.innerHTML = index;
        //添加事件
        i.addEventListener("click", function () {

            for (let index = 0; index < spot.children.length; index++) {
                spot.children[index].style.backgroundColor = "#ccc";
            }
            this.style.backgroundColor = "#C20C0C";
            var index = parseInt(this.getAttribute("index")) + 1;
            flag1 = index - 1;
            flag = index;
            //banner滾動
            animate(ul, -index * banner_width)
            // ul.style.left = -flag * banner_width + "px";
            //背景更換
            rotation_chart.style.background = 'url("../upload/bg02.jpg")';



        })
        spot.appendChild(i);
    }

    eleCope()
}
createSpot()

//.添加banner圖片,進(jìn)行過渡
function eleCope() {
    var len = ul.children.length;
    var a0 = ul.children[0].cloneNode(true);
    var a1 = ul.children[len - 1].cloneNode(true);
    ul.appendChild(a0);
    ul.insertBefore(a1, ul.children[0]);
    ul.style.left = -1 * banner_width + "px"
}

//緩動動畫
function animate(obj, target, callback) {
    clearInterval(obj.timer);
    obj.timer = setInterval(function () {
        var step = (target - obj.offsetLeft) / 10;
        step = step > 0 ? Math.ceil(step) : Math.floor(step);
        if (obj.offsetLeft == target) {
            clearInterval(obj.timer);
            if (callback) {
                callback()
            }
        }
        obj.style.left = obj.offsetLeft + step + "px";
    }, 15)
}

rotation_chart1.js

//元素
//因為以下名稱rotation_chart.js文件已用,為防止bug,在名稱后加了1;
var rotation_chart1 = document.querySelector(".rotation_chart1");
var chart_box1 = rotation_chart1.querySelector(".chart_box")
var ul1 = chart_box1.querySelector("ul")

//按鈕-
var left_btn1 = rotation_chart1.querySelector(".left_btn");
var right_btn1 = rotation_chart1.querySelector(".right_btn");
//數(shù)據(jù)
var shownum = 5
var showWidth = 645;
var flag3 = 1;

var timer1 = null;
//事件
timer1 = setInterval(function(){
    right_btn1.click()
},2000);
// .鼠標(biāo)停留
rotation_chart1.addEventListener("mouseover", function () {

    clearInterval(timer1)
})
rotation_chart1.addEventListener("mouseout", function () {
    timer1 = setInterval(function () {
        right_btn1.click()
    }, 2000);
})
right_btn1.addEventListener("click",function(){
    if (flag3 == (ul1.children.length /shownum)-1) {
        flag3 =1;
        ul1.style.left = -showWidth * flag3 + "px";
    }
    flag3 ++;
    animate(ul1, -showWidth * flag3)
    
    
    
})
left_btn1.addEventListener("click", function () {
    if (flag3 == 0) {
        flag3 = (ul1.children.length / shownum) - 2;
        ul1.style.left = -showWidth * flag3 + "px";
    }
    flag3--;
    animate(ul1, -showWidth * flag3)



})
//函數(shù)
//.添加圖片,進(jìn)行過渡
function eleCope1() {
    var len = ul1.children.length;
    var arr = ul1.children;
    var html = '';
    var html1="";
    for (let index = 0; index < len; index++) {
        if (index < shownum) {
            
            html += `
                <li>
                        <a href="">
                            <img src="${arr[index].querySelector("img").src}" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            ${arr[index].querySelectorAll("a")[1].innerHTML}
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            ${arr[index].querySelectorAll("a")[2].innerHTML}
                        </a>
                    </li>
            `
        } else if (index >(len-1-shownum)){
            html1 += `
                <li>
                        <a href="">
                            <img src="${arr[index].querySelector("img").src}" alt="">
                        </a>
                        <br>
                        <a href="##" style="color:#666;">
                            ${arr[index].querySelectorAll("a")[1].innerHTML}
                        </a> <br>
                        <a href="##" style="color:#ccc;">
                            ${arr[index].querySelectorAll("a")[2].innerHTML}
                        </a>
                    </li>
            `
        }
        
    }
    ul1.insertAdjacentHTML("afterbegin", html1);
    ul1.insertAdjacentHTML("beforeend", html);
    ul1.style.left = -1 * showWidth + "px"
    // var a0 = ul.children[0].cloneNode(true);
    // var a1 = ul.children[len - 1].cloneNode(true);
    // ul.appendChild(a0);
    // ul.insertBefore(a1, ul.children[0]);
    // ul.style.left = -1 * banner_width + "px"
}
eleCope1()
//緩動動畫
function animate(obj, target, callback) {
    clearInterval(obj.timer);
    obj.timer = setInterval(function () {
        var step = (target - obj.offsetLeft) / 10;
        step = step > 0 ? Math.ceil(step) : Math.floor(step);
        if (obj.offsetLeft == target) {
            clearInterval(obj.timer);
            if (callback) {
                callback()
            }
        }
        obj.style.left = obj.offsetLeft + step + "px";
    }, 15)
}

?

?

此項目文件是僅供學(xué)習(xí)參考。若需要具體文件,可以聯(lián)系作者本人,謝謝瀏覽!文章來源地址http://www.zghlxwxcb.cn/news/detail-480634.html

到了這里,關(guān)于Web開發(fā)之輪播圖的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • element ui 中輪播圖組件樣式修改為三列展示輪播

    element ui 中輪播圖組件樣式修改為三列展示輪播

    實現(xiàn)效果 在使用 Element UI 組件庫中的跑馬燈組件時,需求是三列卡片輪播的實現(xiàn)。雖然 Element UI 中跑馬燈組件提供了 type=‘card’ 屬性,去設(shè)置輪播為卡片類型,但是樣式不是我們所期待的,不想要縮放效果,于是便對跑馬燈組件源碼進(jìn)行調(diào)整。 源碼主要修改 跑馬燈組件主

    2024年02月04日
    瀏覽(20)
  • 12-web前端輪播圖案例 (小米商城)

    12-web前端輪播圖案例 (小米商城)

    說明: 輪播圖在前端開發(fā)中是一種常見的元素,通常用于展示一系列的圖片或者內(nèi)容,并通過滑動或者點擊的方式進(jìn)行切換。使用JavaScript來實現(xiàn)輪播圖有以下幾個意義: 提升用戶體驗:輪播圖可以在有限的空間內(nèi)展示更多的內(nèi)容,為用戶提供更多的信息。同時,輪播圖也具

    2024年02月08日
    瀏覽(21)
  • vue項目中使用vant輪播圖組件(桌面端)

    vue項目中使用vant輪播圖組件(桌面端)

    vue使用vant輪播圖組件(桌面端) 2.1 Visual Studio Code 1.75.0 2.2 chrome瀏覽器 2.3 node v18.14.0 3.1 安裝環(huán)境 3.2 添加代碼 3.3 結(jié)果展示 4.1 安裝環(huán)境 先安裝包 然后桌面端適配 4.2 添加代碼 注冊組件 相比于官方給的代碼,有兩個方面需要注意,一個是適配桌面端,還有一個就是我以為vant組

    2024年02月04日
    瀏覽(35)
  • vue3自定義封裝組件:消息提示、輪播圖、加載更多、骨架屏組件

    定義組件:src/components/library/xtx-infinite-loading.vue 注冊組件:src/components/library/index.js ?引用組件:src/main.js 使用組件: .vue文件 首先是輪播圖的樣式:src/components/library/xtx-carousel.vue? 然后是輪播圖的結(jié)構(gòu)與邏輯封裝:src/components/library/xtx-carousel.vue 插件注冊:src/components/library

    2024年02月12日
    瀏覽(17)
  • 后端開發(fā)7.輪播圖模塊【mongdb開發(fā)】

    后端開發(fā)7.輪播圖模塊【mongdb開發(fā)】

    概述 輪播圖模塊數(shù)據(jù)庫采用mongdb開發(fā)? 效果圖 ? ? 數(shù)據(jù)庫設(shè)計 創(chuàng)建數(shù)據(jù)庫 添加數(shù)據(jù) ? 查詢數(shù)據(jù) 查詢所有數(shù)據(jù)

    2024年02月13日
    瀏覽(16)
  • new mars3d.graphic.Popup({實現(xiàn)插入輪播圖組件的思路參考

    new mars3d.graphic.Popup({實現(xiàn)插入輪播圖組件的思路參考

    需求場景: 官網(wǎng)的示例鏈接的浮動監(jiān)控點示例,實現(xiàn)的是播放視頻。 但是我的需求場景是播放輪播圖,此時該怎么實現(xiàn)呢? 示例地址: 功能示例(Vue版) | Mars3D三維可視化平臺 | 火星科技 相關(guān)代碼: function addRandomGraphicByCount(graphicLayer, position) { ? const graphicImg = new mars3d.graph

    2024年01月19日
    瀏覽(25)
  • Vue3.0項目——打造企業(yè)級音樂App(一)Tab欄、輪播圖、歌單列表、滾動組件

    Vue3.0項目——打造企業(yè)級音樂App(一)Tab欄、輪播圖、歌單列表、滾動組件

    內(nèi)容 參考鏈接 Vue3.0 項目啟動 Vue3.0 項目啟動(打造企業(yè)級音樂App) Vue3.0項目——打造企業(yè)級音樂App(一) Tab欄、輪播圖、歌單列表、滾動組件 Vue3.0項目——打造企業(yè)級音樂App(二) 圖片懶加載、v-loading指令的開發(fā)和優(yōu)化 vue3.0-music 該項目為移動端的項目,我們要設(shè)置縮放

    2023年04月11日
    瀏覽(21)
  • 微信小程序-輪播圖-九宮格布局--【開發(fā)實戰(zhàn)(第2版)】

    微信小程序-輪播圖-九宮格布局--【開發(fā)實戰(zhàn)(第2版)】

    微信目錄集鏈接在此: 詳細(xì)解析黑馬微信小程序視頻–【思維導(dǎo)圖知識范圍】 難度★???? 微信小程序開發(fā)實戰(zhàn)(第2版)入門–【開發(fā)實戰(zhàn)(第2版)】 ★★??? 不會導(dǎo)入/打開小程序的看這里:參考 微信小程序開發(fā)實戰(zhàn)(第2版)入門–【開發(fā)實戰(zhàn)(第2版)】 用免費

    2024年02月08日
    瀏覽(23)
  • web前端【3】JS基礎(chǔ)-輪播圖【JavaScript、定時器、鼠標(biāo)動作、自動輪播、增加和減少li列表】

    web前端【3】JS基礎(chǔ)-輪播圖【JavaScript、定時器、鼠標(biāo)動作、自動輪播、增加和減少li列表】

    一、實驗題目: 輪播圖 二、實驗內(nèi)容簡介 1.整體布局:圖片、左右按鈕、數(shù)字列表、添加刪除按鈕 2、左右箭頭滾動 3、小圓點滾動 4、自動輪播 5、鼠標(biāo)動作:指向和離開 6、添加與刪除 三、實驗過程 1. 需求分析 整體布局:設(shè)計一個輪播圖,中間部分為自動輪播的圖片展示

    2024年02月04日
    瀏覽(26)
  • 【微信小程序】6天精準(zhǔn)入門(第3天:小程序flex布局、輪播圖組件及mock運用以及綜合案例)附源碼

    【微信小程序】6天精準(zhǔn)入門(第3天:小程序flex布局、輪播圖組件及mock運用以及綜合案例)附源碼

    布局的傳統(tǒng)解決方案,基于[盒狀模型],依賴display屬性 +?position屬性 +?float屬性 Flex是 Flexible Box 的縮寫,意為” 彈性布局 ”,用來為盒狀模型提供最大的靈活性。 任何一個容器都可以指定為Flex布局。 display: ‘flex’ ????????容器默認(rèn)存在兩根軸: 水平的主軸(main axi

    2024年02月08日
    瀏覽(29)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包