共计 3167 个字符,预计需要花费 8 分钟才能阅读完成。
静音
样式的话就十分简单了,大家也可以参照我的样式,也可以自己去写样式!不过最重要的东西我还没说,那就是功能的实现,请接着往下面看!
div {
width: 700px;
height: 395px;
position: relative;
margin: 60px auto;
/* background-color: pink; */
}
p {
width: 80px;
height: 80px;
line-height: 80px;
text-align: center;
background-color: rgb(4 4 4 / 35%);
border-radius: 50%;
position: absolute;
top: -40px;
left: 0;
right: 0;
bottom: 0;
margin: auto;
color: #fff;
display: none;
z-index: 5;
}
div:hover {
cursor: pointer;
transition: all 2s;
}
/* div:hover p {
visibility: visible;
} */
video {
width: 700px;
height: 395px;
}
.font1 {
font-size: xx-large;
}
span {
display: block;
width: 220px;
height: 240px;
background-image: url(./source/122.png);
background-size: cover;
position: absolute;
top: 60px;
left: 240px;
z-index: 6;
display: none;
}
span em {
box-sizing: border-box;
display: block;
width: 25px;
height: 25px;
padding: 0 4px;
line-height: 20px;
font-size: 24px;
background-color: rgba(255, 81, 0, 0.795);
position: absolute;
right: 1px;
top: 1px;
}
/* 底部栏 */
.footer {
height: 50px;
background-color: rgb(0 0 0 / 35%);
position: absolute;
bottom: 0;
left: 0;
margin: 0;
}
/* 播放按钮 */
.play {
margin: 10px 10px;
width: 50px;
height: 30px;
line-height: 30px;
text-align: center;
font-size: 18px;
border-radius: 10px;
color: #fff;
border: 2px solid #fff;
float: left;
}
/* 时间 */
.time {
width: 100px;
height: 50px;
margin: 18px 20px;
float: left;
color: #fff;
}
/* 倍速 */
.quick {
position: absolute;
right: 0;
bottom: 0;
width: 60px;
height: 176px;
/* border: 1px solid rgb(17, 16, 16); */
color: rgb(10, 9, 9);
text-align: center;
margin: 0 10px;
text-align: center;
}
.quick_text {
position: absolute;
top: 130px;
right: 4px;
width: 50px;
height: 30px;
border: 2px solid hotpink;
border-radius: 10px;
color: rgb(243, 230, 230);
text-align: center;
line-height: 30px;
margin: 5px auto;
}
ul {
padding: 0;
width: 50px;
height: 107px;
/* background-color: seagreen; */
display: none;
}
ul li {
list-style-type: none;
padding: 0 11px;
}
.quick:hover .quickList {
display: block;
}
.quickList li:hover {
color: hotpink;
}
/* 进度条 */
.progress {
position: absolute;
top: -61px;
left: 0;
width: 100%;
height: 3px;
background: #fff;
}
.progress .pro {
width: 5px;
height: 3px;
background: rgb(236, 127, 182);
position: absolute;
left: 0;
top: -60px;
}
.bar{
position: absolute;
left: 0;
top: -3px;
width: 8px;
height: 8px;
border-radius: 50%;
background: rgb(255, 252, 252);
z-index: 8;
}
/* 静音 */
.mute {
position: absolute;
自我介绍一下,小编 13 年上海交大毕业,曾经在小公司待过,也去过华为、OPPO 等大厂,18 年进入阿里一直到现在。
深知大多数前端工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024 年 Web 前端开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合 3 年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了 95% 以上前端开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加 V 获取:vip1024c(备注前端)
最后
我可以将最近整理的前端面试题分享出来,其中包含 HTML、CSS、JavaScript、服务端与网络、Vue、浏览器、数据结构与算法 等等,还在持续整理更新中,希望大家都能找到心仪的工作。
CodeChina 开源项目:【大厂前端面试题解析 + 核心总结学习笔记 + 真实项目实战 + 最新讲解视频】
篇幅有限,仅展示部分截图:
一个人可以走的很快,但一群人才能走的更远。如果你从事以下工作或对以下感兴趣,欢迎戳这里加入程序员的圈子,让我们一起学习成长!
AI 人工智能、Android 移动开发、AIGC 大模型、C C#、Go 语言、Java、Linux 运维、云计算、MySQL、PMP、网络安全、Python 爬虫、UE5、UI 设计、Unity3D、Web 前端开发、产品经理、车载开发、大数据、鸿蒙、计算机网络、嵌入式物联网、软件测试、数据结构与算法、音视频开发、Flutter、IOS 开发、PHP 开发、.NET、安卓逆向、云计算
png)
一个人可以走的很快,但一群人才能走的更远。如果你从事以下工作或对以下感兴趣,欢迎戳这里加入程序员的圈子,让我们一起学习成长!
AI 人工智能、Android 移动开发、AIGC 大模型、C C#、Go 语言、Java、Linux 运维、云计算、MySQL、PMP、网络安全、Python 爬虫、UE5、UI 设计、Unity3D、Web 前端开发、产品经理、车载开发、大数据、鸿蒙、计算机网络、嵌入式物联网、软件测试、数据结构与算法、音视频开发、Flutter、IOS 开发、PHP 开发、.NET、安卓逆向、云计算
原文地址: HTML5 新增的 video 标签配合原生 js,实现视频案例!,【面试必备