作者 乔爽

update

... ... @@ -156,7 +156,7 @@
}
.new_video_bottom{
width: 2.8rem;
height: 0.4rem;
/*height: 0.4rem;*/
display: flex;
align-items: center;
justify-content: space-between;
... ... @@ -189,7 +189,7 @@
.new_video_big{
margin-top: 0.25rem;
width: 6.86rem;
height: 3.6rem;
/*height: 3.6rem;*/
background:rgba(255,255,255,1);
box-shadow:0 0.01rem 0.06rem 0 rgba(116,116,116,0.14);
border-radius: 0.1rem;
... ... @@ -213,7 +213,6 @@
}
.new_video_big_bottom{
width: 6rem;
/*height: 0.4rem;*/
display: flex;
align-items: center;
justify-content: space-between;
... ...
... ... @@ -16,9 +16,11 @@
opacity: 0.9;
position: fixed;
top: 1.69rem;
/*top: 0;*/
z-index: 999;
display: flex;
align-items: center;
overflow-y: hidden;
}
.pop{
position: absolute;
... ... @@ -42,3 +44,51 @@
padding: 0.42rem;
}
.mask_2{
opacity: 1;
}
/*视频播放*/
.mask_video{
width: 6rem;
/*height: 4rem;*/
background: #000000;
position: absolute;
top: 3rem;
}
.mask_video_top{
height: 0.5rem;
line-height: 0.5rem;
font-size: 0.3rem;
color: #000;
text-align: center;
position: relative;
background-color: #007aff;
}
.mask_video_bottom{
width: 6rem;
/*height: 3.5rem;*/
display: flex;
}
.mask_video_bottom video{
width: 100%;
height: 100%;
}
/*菜单*/
.menu_item{
width: 1.8rem;
display: flex;
flex-flow: column;
font-size: 0.24rem;
font-weight: bold;
background-color: orangered;
position: absolute;
top: 0.8rem;
z-index: 999;
}
.menu_item p{
position: relative;
line-height: 0.5rem;
text-align: center;
border-bottom: 1px solid #F7F7F7;
margin: 0 0.2rem;
}
... ...
... ... @@ -124,7 +124,7 @@
background:rgba(255,255,255,1);
box-shadow:0 0.01rem 0.06rem 0 rgba(102,102,102,0.14);
border-radius: 0.06rem;
margin-left: 0.1rem;
margin-left: 0.12rem;
}
.item_pic{
width: 2rem;
... ... @@ -296,6 +296,7 @@
height: 100%;
border: none;
outline: none;
resize: none;
box-sizing: border-box;
padding: 0.2rem 0.2rem;
}
... ... @@ -326,7 +327,8 @@
height: 0.8rem;
display: flex;
justify-content: space-around;
background-color: #e5e5e5;
background-color: #fff;
box-shadow: 0 0.07rem 0.1rem 0.01rem rgba(0, 0, 0, 0.08);
border-radius: 0.04rem;
position: absolute;
right: 0;
... ... @@ -338,6 +340,7 @@
align-items: center;
justify-content: space-around;
font-size: 0.16rem;
position: relative;
}
/*评论*/
... ...
... ... @@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/index_2.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_u8m5zjdi1u.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_bamhpf0xfl8.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
<link rel="stylesheet" href="css/swiper.css">
... ... @@ -22,7 +22,7 @@
}
.icon-bofangshipin{
font-size: 0.38rem;
line-height: 1.4;
}
.swiper-container {
width: 100%;
... ... @@ -63,6 +63,19 @@
top: 0;
right: 0;
}
.icon-guanbi{
position: absolute;
height: 0.5rem;
line-height: 0.5rem;
top: 0;
right: 0.2rem;
}
.icon-shangsanjiao{
position: absolute;
top: -0.2rem;
left: -0.2rem;
color: orangered;
}
</style>
</head>
<script src="js/swiper.js"></script>
... ... @@ -78,7 +91,18 @@
</div>
<!--菜单图标-->
<div class="iconfont icon-caidan"></div>
<div class="iconfont icon-caidan">
<!--菜单列表-->
<div class="menu_item" style="display: none;">
<p class="index_jump">主页
<span class="iconfont icon-shangsanjiao"></span>
</p >
<p class="rwxq_jump">人物详情</p>
<p class="grzy_jump">个人主页</p>
<p class="spxq_jump">视频详情</p>
</div>
</div>
</div>
<!--中-->
<div class="top_t_middle">
... ... @@ -132,7 +156,7 @@
</div>
<!--最新小视频窗口-->
<div class="new_video_item">
<div class="new_video">
<div class="new_video video_player">
<div class="new_video_top">
<img src="images/peke.png">
</div>
... ... @@ -149,7 +173,7 @@
</div>
</div>
</div>
<div class="new_video">
<div class="new_video video_player">
<div class="new_video_top">
<img src="images/peke.png">
</div>
... ... @@ -168,7 +192,7 @@
</div>
</div>
<!--最新打视频窗口-->
<div class="new_video_big">
<div class="new_video_big video_player">
<div class="new_video_big_pic">
<img src="images/peke.png">
</div>
... ... @@ -319,6 +343,8 @@
</div>
</div>
<!--动态层-->
<div class="mask" style="display: none;" >
<div class="pop">
... ... @@ -332,11 +358,63 @@
百科
</div>
</div>
<!--1111-->
</div>
<!--视频播放层-->
<div class="mask mask_2" style="display: none">
<div class="mask_video">
<div class="mask_video_top">视频
<!--关闭-->
<div class="iconfont icon-guanbi"></div>
</div>
<div class="mask_video_bottom">
<video src="video/Bugatti_1.mp4" controls="controls" webkit-playsinline="true" playsinline="true" x5-playsinline="true" id="video_1">
</video>
</div>
</div>
</div>
</div>
</body>
<script>
//点击打开菜单
$('.icon-caidan').click(function () {
$('.menu_item').slideToggle();
})
//地址跳转
$('.index_jump').click(function () {
window.location.href = 'index_2.html'
})
$('.rwxq_jump').click(function () {
window.location.href = 'rwxq.html'
})
$('.grzy_jump').click(function () {
window.location.href = 'grzy.html'
})
$('.spxq_jump').click(function () {
window.location.href = 'grzy.html'
})
//点击打开视频
$('.video_player').click(function () {
$('.mask_2').css("display","flex");
})
// 点击关闭视频
$('.icon-guanbi').click(function () {
$('.mask_2').css("display","none")
var video = document.getElementById('video_1');
video.pause()
})
//点击图片进入视频详情
$('.pic_box').click(function () {
window.location.href = "spxq.html"
})
var swiper = new Swiper('.swiper-container',{
loop: true, // 循环模式选项
... ...
... ... @@ -69,13 +69,22 @@
}
.icon-shangsanjiao{
position: absolute;
color: #e5e5e5;
right: 0;
top: 0.42rem;
color: #fff;
right: -0.1rem;
top: -0.2rem;
}
.bottom_icon{
font-size: 0.16rem;
}
.icon-weixin{
font-size: 0.4rem;
}
.icon-NGlianshu{
font-size: 0.38rem;
}
.red_color{
color: #A61010;
}
</style>
</head>
... ... @@ -247,11 +256,14 @@
</div>
<div class="iconfont icon-fenxiang share_color">
<div class="share_box">
<!--上三角-->
<div class="iconfont icon-shangsanjiao"></div>
<!--分享内容-->
<div class="share_function">
<div class="share_function_item">
<div class="iconfont icon-weibo-copy size_icon"></div>
<p>微博</p>
</div>
... ... @@ -266,6 +278,9 @@
<div class="share_function_item">
<div class="iconfont icon-NGlianshu size_icon"></div>
<p>脸书</p>
<!--上三角-->
<!--<div class="iconfont icon-shangsanjiao"></div>-->
</div>
</div>
... ... @@ -361,6 +376,21 @@
</div>
</body>
<script>
$('.icon-fenxiang').click(function () {
$('.share_function').slideToggle();
})
// 点击关注
$('.icon-xinaixin').click(function () {
// if ($(this).hasClass("red_color")){
// $(this).removeClass("red_color").siblings().addClass("red_color")
// } else
// {
// $(this).addClass("red_color").siblings().removeClass('red_color')
// }
})
</script>
... ...
不能预览此文件类型
... ... @@ -344,7 +344,8 @@
<div class="mask_new">
<input class="mask_new_small" type="text" placeholder="手机验证码">
</div>
<div class="mask_new_text">获取验证码</div>
<div class="mask_new_text get_code">获取验证码</div>
<div class="mask_new_text reget" style="display: none;">60秒后重新获取</div>
</div>
<!--底部按钮-->
<div class="mask_tel_button">
... ... @@ -485,6 +486,10 @@
$('.mask_new_small').val("")
})
//获取验证码
$('.get_code').click(function () {
})
// 设置邮箱
$('.set_email').click(function () {
... ... @@ -505,5 +510,7 @@
$('.mask_new_input').val('')
})
</script>
</html>
... ...