当前位置:网站首页>Split screen bug notes
Split screen bug notes
2022-07-07 13:25:00 【Poplar siege lion】
After the split screen of the previous article , Find the bottom control div Affected by floating , Moved to the top , This is not reasonable , So clear float is set overflow: hidden attribute , But there are new problems , Click on 4 After split screen , Scroll bars appear on the page . It can be seen here that the set width and height are unreasonable , So we need to set it accurately .
First, we need to set the accommodation video Labeled div Size . After the page is loaded , Set by loading the completion event , Bold , Set to accommodate video Labeled div. The following code is the setup sheet video Width and height of label , Due to the margin:2px. So we need to subtract the width and height 4 Pixel .
mounted() {
this.$nextTick(() => {
// Set up
let player = document.getElementsByClassName('player');
console.log(player);
player[0].width = window.innerWidth - 400;
player[0].height = window.innerHeight - 80 - 60;
let vi = document.getElementById(1);
vi.width = window.innerWidth - 400 - 4;
vi.height = window.innerHeight - 80 - 60 - 4;
vi.margin = 0;
})
},
Moreover, setting video Just float the label , Here's one bug, At first, I set it to include video Labeled div float , There will be div And video There will be a gap between , So you can only set video Floating of labels
overflow: hidden;
background-color: aquamarine;
.video-content-1 {
//float: left; // Cannot set div Floating of , Will be in video There is a gap between
display:inline;
video {
float: left;
// width: 1520px - 4px;
// height: 849px - 60px;
margin: 2px;
padding: 0;
object-fit: fill;
border-width: 2px;
border-color: aqua;
box-sizing: border-box;
}
}
边栏推荐
猜你喜欢

OSI seven layer model

存储过程的介绍与基本使用

QQ的药,腾讯的票

High end for 8 years, how is Yadi now?
![[learning notes] zkw segment tree](/img/18/21f455a06e8629243fc5cf4df0044c.png)
[learning notes] zkw segment tree

单片机学习笔记之点亮led 灯

《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?

My "troublesome" subordinates after 00: not bad for money, against leaders, and resist overtime

Vscode编辑器ESP32头文件波浪线不跳转彻底解决

Digital IC Design SPI
随机推荐
Differences between MySQL storage engine MyISAM and InnoDB
MongoDB 遇见 spark(进行整合)
Grep of three swordsmen in text processing
聊聊伪共享
Read PG in data warehouse in one article_ stat
Shortcut key of Bash
将数学公式在el-table里面展示出来
[QNX hypervisor 2.2 user manual]6.3.4 virtual register (guest_shm.h)
PCAP学习笔记二:pcap4j源码笔记
Ogre入门尝鲜
Common text processing tools
[learning notes] segment tree selection
ESP32 ① 编译环境
JS function 返回多个值
centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)
JS缓动动画原理教学(超细节)
OSI seven layer model
单片机学习笔记之点亮led 灯
QQ的药,腾讯的票
Storage principle inside mongodb