当前位置:网站首页>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 七层模型
高端了8年,雅迪如今怎么样?
Awk of three swordsmen in text processing
[learning notes] zkw segment tree
MATLAB中polarscatter函数使用
Japanese government and enterprise employees got drunk and lost 460000 information USB flash drives. They publicly apologized and disclosed password rules
日本政企员工喝醉丢失46万信息U盘,公开道歉又透露密码规则
[untitled]
【学习笔记】AGC010
将数学公式在el-table里面展示出来
随机推荐
基于鲲鹏原生安全,打造安全可信的计算平台
记一次 .NET 某新能源系统 线程疯涨 分析
ORACLE进阶(五)SCHEMA解惑
记一次 .NET 某新能源系统 线程疯涨 分析
1、深拷贝 2、call apply bind 3、for of for in 区别
Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~
解决缓存击穿问题
Esp32 ① compilation environment
How to make the new window opened by electorn on the window taskbar
PACP学习笔记一:使用 PCAP 编程
【学习笔记】线段树选做
Distributed transaction solution
Scripy tutorial classic practice [New Concept English]
Day26 IP query items
MongoDB的导入导出、备份恢复总结
LED light of single chip microcomputer learning notes
Analysis of DHCP dynamic host setting protocol
Mongodb replication (replica set) summary
How did Guotai Junan Securities open an account? Is it safe to open an account?
[learning notes] zkw segment tree