Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
5iux committed Nov 17, 2020
1 parent 47074c1 commit c910279
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
</head>

<body>
<!--视频头部背景-->
<div class="banner-video">
<!--视频来自阿里云首页,有需要请自行更换-->
<video autoplay loop muted>
<source src="https://acd-assets.alicdn.com/20201111/3840-banner.mp4" type="video/mp4"></video>
<!---source src="https://cdn.jsdelivr.net/gh/5iux/uploads/pic/3840-banner.mp4" type="video/mp4"></video-->
</div>

<!--topbar开始-->
<style>
.navbar-toggler svg{ width: 24px; height: 24px; }
Expand Down Expand Up @@ -85,14 +93,7 @@
</div>
</nav>
<!--topbar结束-->
<div class="container" style="margin-top: 100px; position: relative;">
<!--视频头部背景-->
<div class="banner-video">
<!--视频来自阿里云首页,有需要请自行更换-->
<video width="100%" autoplay loop muted>
<source src="https://acd-assets.alicdn.com/20201111/3840-banner.mp4" type="video/mp4"></video>
<!---source src="https://cdn.jsdelivr.net/gh/5iux/uploads/pic/3840-banner.mp4" type="video/mp4"></video-->
</div>
<div class="container" style="margin-top: 100px; position: relative; z-index: 100;">
<!--搜索开始-->
<div id="search" class="s-search">
<div id="search-list" class="hide-type-list">
Expand Down
14 changes: 9 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ svg.icon { width: 14px; height: 14px; margin: 0 5px 0 8px; vertical-align: -0.15
.mylist li.title .icon{color: #fff;}
.banner-video {
position: absolute;
width: 1920px;
width: 100%;
height: 270px; overflow: hidden;
left: 50%;
margin-left: -960px;
margin-top: -160px;
left: 0; top:0;
}
.banner-video video{
position: absolute;
width: 1920px;
left:50%; margin-left: -960px;
}

@media screen and (min-width:1200px){
Expand All @@ -60,7 +63,8 @@ svg.icon { width: 14px; height: 14px; margin: 0 5px 0 8px; vertical-align: -0.15
#he-plugin-simple{ overflow: hidden ; }
}
@media screen and (max-width:767px){
.banner-video {display: none;}
.banner-video{ height: 210px;}
.banner-video video{ width: 760px; margin-left: -380px; margin-top: 60px;}
#search{margin:25px auto 15px}
.s-type-list label{padding:5px 0}
.search-type{overflow:hidden}
Expand Down

1 comment on commit c910279

@vercel
Copy link

@vercel vercel bot commented on c910279 Nov 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.