js:設(shè)置一個fluid為true。 1 2 3 4 varplayer = videojs('video', { fluid:true},function() { console.log('Good to go!'); this.play();// if you don't trust autoplay for some reason }) 但這個還需要給video元素設(shè)置一個起始的寬高,不然開始的圖片看不見。
www.dbjr.com.cn/html5/6390...html 2025-6-7