自适应视频播放

代码语言:html

所属分类:布局界面

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<title>  Responsive video - JavaScript module</title>

<style>
 
.video-container {
 
max-width: 1200px;
 
margin: 0 auto;
}
.video-container video {
 
width: 100%;
}

.tip {
 
max-width: 1200px;
 
margin: 40px auto 0 auto;
 
display: flex;
 
justify-content: center;
 
align-items: center;
 
font-family: arial;
 
font-weight: bold;
}
.tip svg {
 
margin-right: 10px;
}

.social {
 
position: fixed;
 
bottom: 20px;
 
right: 0;
 
font-size: 0;
 
list-style: none;
 
margin: 0;
 
padding: 0 26px;
}
.social li {
 
display: inline-block;
 
margin: 12px;
}
.social a, .social svg {
 
display: block;
}
.social a {
 
position: relative;
 
height: 40px;
 
width: 40px;
}
.social svg {
 
height: 100%;
 
width: 100%;
}
.social .icon {
 
color: #444757;
 
fill: #444757;
}
.social .icon:hover {
 
border-radius: 100%;
 
color: #5f637a;
 
fill: #5f637a;
 
-webkit-transform: scale(1.25);
 
transform: scale(1.25);
 
-webkit-transition: background-color 0.5s,  -webkit-transform 0.5s ease-out;
 
transition: background-color 0.5s,  -webkit-transform 0.5s ease-out;
 
transition: background-color 0.5s,  transform 0.5s ease-out;
 
transition: background-color 0.5s,  transform 0.5s ease-out,  -webkit-transform 0.5s ease-out;
}
</style>

</head>
<body translate="no">
<div class=".........完整代码请登录后点击上方下载按钮下载查看

网友评论0