Commit 3bb75a7d authored by liujiangnan's avatar liujiangnan

feat: 背景图片

parent dc6f3c7e
<div class="player-preview-sequence"> <div class="body-bg"></div>
<div class="player-border">
<div class="player-preview-sequence">
<div class="content-wrap "> <div class="content-wrap ">
<!-- aspectRatioSizer--> <!-- aspectRatioSizer-->
<!-- <svg viewBox="0 0 4 3" style="max-width: 100vmin;max-height: 100vmin;"/>--> <!-- <svg viewBox="0 0 4 3" style="max-width: 100vmin;max-height: 100vmin;"/>-->
<!--[style.padding]="randPics.length > 2 && randPics.length <= 4 ? '12% 20% 0' : '15% 5% 0'"--> <!--[style.padding]="randPics.length > 2 && randPics.length <= 4 ? '12% 20% 0' : '15% 5% 0'"-->
<div class="item-wrap" #boxContainer> <div class="item-wrap" #boxContainer>
<div *ngFor="let pic of randPics index as i" <div *ngFor="let pic of randPics index as i"
...@@ -49,5 +52,6 @@ ...@@ -49,5 +52,6 @@
<!--</div>--> <!--</div>-->
<!--</div>--> <!--</div>-->
<!--</div>--> <!--</div>-->
</div> </div>
</div>
.body-bg {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-image: url('../../assets/player-bg.png') !important;
background-size: 100%;
}
.player-border{
position: absolute;
left: calc((100% - 100vh * 1.36)/ 2);
top: 5vh;
right: calc((100% - 100vh * 1.36)/ 2);
bottom: 5vh;
text-align: center;
// box-shadow: 0 2px 12px 0 rgba(0,0,0,.3);
border-radius: 11px;
border: 20px solid #23b1c2;
background-color: #fff;
overflow: hidden;
color: #303133;
transition: .3s;
}
.player-preview-sequence{ .player-preview-sequence{
width: 100%; width: 100%;
height: 100%; height: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment