課程
/前端開發(fā)
/Vue.js
/快速入門Web閱讀器開發(fā)
看了幾遍代碼沒有問題呀
2018-10-17
源自:快速入門Web閱讀器開發(fā) 3-11
正在回答
你好,能提供一下源碼嗎?初步判斷是backgroundSize屬性設(shè)置的問題
.setting-progress {
??????position: relative;
??????width: 100%;
??????height: 100%;
??????.progress-wrapper {
????????width: 100%;
????????height: 100%;
????????@include center;
????????padding: 0 px2rem(30);
????????box-sizing: border-box;
????????.progress {
??????????width: 100%;
??????????// 覆蓋默認(rèn)樣式
??????????-webkit-appearance: none;
??????????height: px2rem(2);
??????????background: -webkit-linear-gradient(#999, #999) no-repeat, #ddd;
??????????background-size: 0 100%;
??????????&:focus {
????????????outline: none;
??????????}
??????????// 進(jìn)度條的手柄
??????????&::-webkit-slider-thumb {
????????????-webkit-appearance: none;
????????????height: px2rem(20);
????????????width: px2rem(20);
????????????border-radius: 50%;
????????????background: white;
????????????box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .15);
????????????border: px2rem(1) solid #ddd;
????????}
??????}
onProgressInput(progress) {
??????this.progress = progress
??????this.$refs.progress.style.backgroundSize = '${this.progress}% 100%'
????},
里德曼長著驢耳朵
Zoey_Zhang 提問者 回復(fù) 里德曼長著驢耳朵
舉報(bào)
帶你了解電子書閱讀器的工作原理,通過Vue.js快速實(shí)現(xiàn)Web閱讀器
1 回答進(jìn)度條沒有隨著翻頁改變
1 回答進(jìn)度條問題
1 回答跳轉(zhuǎn)目錄的時(shí)候,如何讓進(jìn)度條跟著變化?下一頁的時(shí)候讓進(jìn)度條也變化?
1 回答進(jìn)度條選中后出現(xiàn)藍(lán)色邊框
1 回答當(dāng)點(diǎn)擊左翻頁或者右翻頁的時(shí)候進(jìn)度條是沒有變化的?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-10-17
你好,能提供一下源碼嗎?初步判斷是backgroundSize屬性設(shè)置的問題
2018-10-24
.setting-progress {
??????position: relative;
??????width: 100%;
??????height: 100%;
??????.progress-wrapper {
????????width: 100%;
????????height: 100%;
????????@include center;
????????padding: 0 px2rem(30);
????????box-sizing: border-box;
????????.progress {
??????????width: 100%;
??????????// 覆蓋默認(rèn)樣式
??????????-webkit-appearance: none;
??????????height: px2rem(2);
??????????background: -webkit-linear-gradient(#999, #999) no-repeat, #ddd;
??????????background-size: 0 100%;
??????????&:focus {
????????????outline: none;
??????????}
??????????// 進(jìn)度條的手柄
??????????&::-webkit-slider-thumb {
????????????-webkit-appearance: none;
????????????height: px2rem(20);
????????????width: px2rem(20);
????????????border-radius: 50%;
????????????background: white;
????????????box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .15);
????????????border: px2rem(1) solid #ddd;
??????????}
????????}
??????}
2018-10-24
onProgressInput(progress) {
??????this.progress = progress
??????this.$refs.progress.style.backgroundSize = '${this.progress}% 100%'
????},