全屏时框架的message alert 下拉框失效问题

在工作中将#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’);
}
}

相关推荐

  1. 框架message alert 失效问题

    2024-03-19 23:18:04       44 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-19 23:18:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-19 23:18:04       100 阅读
  3. 在Django里面运行非项目文件

    2024-03-19 23:18:04       82 阅读
  4. Python语言-面向对象

    2024-03-19 23:18:04       91 阅读

热门阅读

  1. Linux 常用运维使用指令

    2024-03-19 23:18:04       45 阅读
  2. pytorch升级打怪(五)

    2024-03-19 23:18:04       35 阅读
  3. C++学习之旅(一)- 序言

    2024-03-19 23:18:04       43 阅读
  4. android 网络检测简单方法

    2024-03-19 23:18:04       45 阅读
  5. 【C语言】数组基础

    2024-03-19 23:18:04       45 阅读
  6. Linux作业

    2024-03-19 23:18:04       40 阅读
  7. 网页的制作

    2024-03-19 23:18:04       40 阅读
  8. 关于我的经历

    2024-03-19 23:18:04       39 阅读
  9. 【笔记】Linux常用命令

    2024-03-19 23:18:04       43 阅读
  10. PHP使用AES进行加解密

    2024-03-19 23:18:04       37 阅读
  11. 面试宝典:MySQL 索引优化

    2024-03-19 23:18:04       43 阅读