diff --git a/docs/assets/css/mobile.css b/docs/assets/css/mobile.css index d6923bc54..79178e8ac 100644 --- a/docs/assets/css/mobile.css +++ b/docs/assets/css/mobile.css @@ -10,6 +10,7 @@ html, body { .artplayer-app { width: 100%; + height: 50%; } .tip { diff --git a/docs/assets/js/mobile.js b/docs/assets/js/mobile.js index fb0228a7b..0efbe1925 100644 --- a/docs/assets/js/mobile.js +++ b/docs/assets/js/mobile.js @@ -58,10 +58,6 @@ var art = new Artplayer({ whitelist: ['*'], }); -art.on('ready', function () { - art.autoHeight = true; -}); - Artplayer.config.events.forEach(function (item) { art.on('video:' + item, function (event) { console.log('video: ' + event.type);