您可以將您的圖像切片成頂/左/右/底部,並把它們周圍的YouTube視頻(覆蓋YouTube播放器的邊緣)
I've mocked up a jsfiddle that uses background-color instead of the sliced up images.
HTML:
<div id="TV">
<div id="top"></div>
<div id="left"></div>
<div id="right"></div>
<div id="bottom"></div>
<div id="playButton">play<div>
</div>
CSS:
#TV{position:absolute;width:500px;height:300px;}
#top{position:absolute;top:0;width:500px;height:20px;background-color:red;}
#left{position:absolute;top:0;left:0;width:20px;height:300px;background-color:red;}
#right{position:absolute;top:0;right:0;width:20px;height:300px;background-color:red;}
#bottom{position:absolute;bottom:0;width:500px;height:20px;background-color:red;}
#playButton{height:100px;width:100px;border-radius:100px;background-color:yellow;left: 200px;position: absolute;top: 90px;}
#playButton:hover{background-color:red;}
我也有一個這樣的例子,你可以在畫布上畫「框架」圖像。 Here
唯一需要注意的是,您需要使用固定的高度和寬度以及絕對位置。