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

MySQL入门尝鲜
![[learning notes] zkw segment tree](/img/18/21f455a06e8629243fc5cf4df0044c.png)
[learning notes] zkw segment tree
![[dark horse morning post] Huawei refutes rumors about](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] Huawei refutes rumors about "military master" Chen Chunhua; Hengchi 5 has a pre-sale price of 179000 yuan; Jay Chou's new album MV has played more than 100 million in 3 hours

Scrapy教程经典实战【新概念英语】

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

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

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

Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~

MATLAB中polarscatter函数使用

如何让join跑得更快?
随机推荐
PACP学习笔记一:使用 PCAP 编程
飞桨EasyDL实操范例:工业零件划痕自动识别
[QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
File operation command
“新红旗杯”桌面应用创意大赛2022
【等保】云计算安全扩展要求关注的安全目标和实现方式区分原则有哪些?
RecyclerView的数据刷新
Storage principle inside mongodb
PCAP学习笔记二:pcap4j源码笔记
Pay close attention to the work of safety production and make every effort to ensure the safety of people's lives and property
Summary of import, export, backup and recovery of mongodb
[Presto profile series] timeline use
服务器到服务器 (S2S) 事件 (Adjust)
MongoDB优化的几点原则
MySQL master-slave replication
我那“不好惹”的00后下属:不差钱,怼领导,抵制加班
How to make the new window opened by electorn on the window taskbar
PAcP learning note 3: pcap method description
信号强度(RSSI)知识整理
将数学公式在el-table里面展示出来