課程
/前端開發
/HTML/CSS
/入門微信小程序開發
為什么我的圖片寬度沒有占滿整個寬度呢,設置了100%,本地圖片路徑也不行!
2019-03-24
源自:入門微信小程序開發 2-1
正在回答
//index.js
//獲取應用實例
const app = getApp()
Page({
data: {
imgUrls:[
'/images/xqfzx_swiper01.jpg',
'/images/xqfzx_swiper02.jpg',
'/images/xqfzx_swiper03.jpg',
'/images/xqfzx_swiper04.jpg',
'/images/xqfzx_swiper05.jpg',
'/images/home-top.jpg',
],
indicatorDots: false,
autoplay: false,
interval: 5000,
duration: 1000
},
onLoad: function () {
}
})
請貼出你的代碼!
舉報
帶你入門微信小程序開發,了解微信小程序的基本知識。
1 回答我找的圖片怎么來設置它適應整個屏幕的寬度,
1 回答為什么我的swiper寬度設置為100%但是沒有顯示完呢,有空白
2 回答圖片不知道怎么置頂
4 回答圖片出不來
2 回答代碼和圖片
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-06-13
//index.js
//獲取應用實例
const app = getApp()
Page({
data: {
imgUrls:[
'/images/xqfzx_swiper01.jpg',
'/images/xqfzx_swiper02.jpg',
'/images/xqfzx_swiper03.jpg',
'/images/xqfzx_swiper04.jpg',
'/images/xqfzx_swiper05.jpg',
'/images/home-top.jpg',
],
indicatorDots: false,
autoplay: false,
interval: 5000,
duration: 1000
},
onLoad: function () {
}
})
2019-03-25
請貼出你的代碼!