当前位置:网站首页>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;
}
}
边栏推荐
猜你喜欢

error LNK2019: 无法解析的外部符号

centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)

Practical example of propeller easydl: automatic scratch recognition of industrial parts

ESP32构解工程添加组件

Milkdown 控件图标

Introduction and basic use of stored procedures

将数学公式在el-table里面展示出来

DHCP 动态主机设置协议 分析

Distributed transaction solution

Sed of three swordsmen in text processing
随机推荐
mysql 局域网内访问不到的问题
PHP - laravel cache
Distributed transaction solution
API query interface for free mobile phone number ownership
单片机学习笔记之点亮led 灯
How did Guotai Junan Securities open an account? Is it safe to open an account?
LeetCode_ Binary search_ Medium_ 153. Find the minimum value in the rotation sort array
Mongodb meets spark (for integration)
自定义线程池拒绝策略
工具箱之 IKVM.NET 项目新进展
Shortcut key of Bash
Mongodb command summary
JS判断一个对象是否为空
Differences between MySQL storage engine MyISAM and InnoDB
JS缓动动画原理教学(超细节)
Cookie and session comparison
DHCP 动态主机设置协议 分析
[QNX hypervisor 2.2 user manual]6.3.4 virtual register (guest_shm.h)
[QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
1. Deep copy 2. Call apply bind 3. For of in differences