我有兩個視頻標籤,我想要在屏幕的底角對齊。另外,內部視頻標籤應重疊外視頻標籤,就像下面給出這一形象:html5視頻標籤的Css對齊和定位
This is what我能想出:
<body>
<div class="container">
<div class="widget_contaner">
<div class="widget_head">this is head of widget</div>
<div class="widget_body">
<video class="large_video" src="#"></video>
<video class="mini_video" src="#"></video>
</div>
</div>
</div>
</body>
CSS
.widget_contaner {
right: 0px;
position: fixed;
bottom: 30px;
z-index: 99999999999999;
}
.widget_header {
background-color: #3fa757;
width: 240px;
text-align: center;
text-transform: uppercase;
font-weight: bold;
border: 1px solid #ccc;
font-size: 12px;
height: 25px;
line-height: 25px;
font-family:'Open Sans', sans-serif;
border-radius: 5px;
}
.widget_body {
width: 240px;
height: 150px;
}
.large_video {
height: 100%;
width: 100%;
}
.mini_video {
position: absolute;
height: 30%;
width: 30%;
bottom: 32px;
right: 4px;
opacity: 0.75;
}
所以我想知道如何才能讓這些視頻標籤像圖片中給出的那樣相對定位?
的jsfiddle:click here
我想你包括JS提琴的錯誤鏈接 - 以及在帖子的底部反正... –
我的不好。鏈接固定 – CuriousMind