• Bước 1: Vào Blog => Mẫu => Chỉnh sửa HTML. Nhấn tổ hợp phím Ctrl + F và tìm đến thẻ </b:skin>. Sau đó dán đoạn mã Code sau ở phía trên thẻ </b:skin> và Lưu mẫu lại.

.tb_outer_wrap {
width: 100%;
max-width: 650px;
margin: 15px auto;
}
.tb_video_wrap_macbook {
position: relative;
padding-bottom: 43%;
padding-top: 0;
height: 0;
overflow: hidden;
-webkit-border-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0d2ggNg_2lY0gmwW7BRhJ53AsjAPpzV5M5q7UKmdcW2bdt9-mLrsxOcWfZ2CWTp57MjMLu0yr8unkmF1m0VcR7F1g3bkR6yXflarU2rQtQrTinyebzwOQBmjH6-wCc9xBPZuZlsiMdyk/s1600/macbook+laptop+frame.png') 50 233 112 228 stretch stretch;
-moz-border-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0d2ggNg_2lY0gmwW7BRhJ53AsjAPpzV5M5q7UKmdcW2bdt9-mLrsxOcWfZ2CWTp57MjMLu0yr8unkmF1m0VcR7F1g3bkR6yXflarU2rQtQrTinyebzwOQBmjH6-wCc9xBPZuZlsiMdyk/s1600/macbook+laptop+frame.png') 50 233 112 228 stretch stretch;
-o-border-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0d2ggNg_2lY0gmwW7BRhJ53AsjAPpzV5M5q7UKmdcW2bdt9-mLrsxOcWfZ2CWTp57MjMLu0yr8unkmF1m0VcR7F1g3bkR6yXflarU2rQtQrTinyebzwOQBmjH6-wCc9xBPZuZlsiMdyk/s1600/macbook+laptop+frame.png') 50 233 112 228 stretch stretch;
border-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0d2ggNg_2lY0gmwW7BRhJ53AsjAPpzV5M5q7UKmdcW2bdt9-mLrsxOcWfZ2CWTp57MjMLu0yr8unkmF1m0VcR7F1g3bkR6yXflarU2rQtQrTinyebzwOQBmjH6-wCc9xBPZuZlsiMdyk/s1600/macbook+laptop+frame.png') 50 233 112 228 stretch stretch;
border-color: rgba(0, 0, 0, 0);
border-width: 27px 76px 55px 76px;
border-style: inset;
}
.tb_video_wrap_macbook iframe, .tb_video_wrap_macbook object, .tb_video_wrap_macbook embed {
position: absolute;
top: 0;
width: 100%;
height: 100%;
background-color: #ddd;
}
@media (max-width: 500px) {
.tb_video_wrap_macbook {
border-width: 20px 62px 40px 62px;
}
@media all and (max-width: 400px) {
.tb_video_wrap_macbook {
border: none !important;
}
 
Bước 2: Nhúng Video từ Youtube vào trong bài viết bằng cú pháp dưới đây:
<div class="tb_outer_wrap">
<div class="tb_video_wrap_macbook">
<iframe width="560" height="315" src="https://www.youtube.com/embed/
SCFUFUyH83Q?rel=0&amp;theme=dark&amp;controls=1&amp;showinfo=0&amp;autohide=0" frameborder="0" allowfullscreen=""></iframe>
</div>
</div> 
 





Chia sẻ :
Magpress

MagPress

Vestibulum bibendum felis sit amet dolor auctor molestie. In dignissim eget nibh id dapibus. Fusce et suscipit orci. Aliquam sit amet urna lorem. Duis eu imperdiet nunc, non imperdiet libero.

0 Bình luận, nhận xét,đánh giá bài viết