在工作中将#app div设为全屏后,elementUI的message和alert和下拉框展开都不见了,解决方法是将设为全屏
// 全屏
function fullScreen() {
let el = document.documentElement; //之前是#app
// console.log(el.requestFullscreen);
let refs =
el.requestFullscreen ||
el.webkitRequestFullScreen ||
el.mozRequestFullScreen ||
el.mozRequestFullScreen;
if (typeof refs != ‘undefined’ && refs) {
console.log(refs);
refs.call(el);
} else {
console.log(‘no fullscreen’);
}
}