在youtube缩略图上删除黑色边框4:3 [英] Removing black borders 4:3 on youtube thumbnails
本文介绍了在youtube缩略图上删除黑色边框4:3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
E.g。我有一个链接
E.g. I have a link
http://img.youtube.com/vi/aOPGepdbfpo/0.jpg
对于youtube视频缩略图,
:
for a youtube video thumbnail:
我想删除黑色顶部和底部边框所以我得到这样的图片:
And I would like to remove the black top and bottom border so I get a picture like this:
可以使用PHP函数javascript / jQuery或者youtube api本身吗?
Could it be done using PHP function javascript/jQuery or maybe youtube api itself?
推荐答案
将它用作背景图像,居中并改变高度。
Use it as a background image, center it and change height.
http://dabblet.com/gist/4012604
.youtubePreview {
background:url('http://img.youtube.com/vi/aOPGepdbfpo/0.jpg') center no-repeat;
height:204px;
width:480px;
}
这篇关于在youtube缩略图上删除黑色边框4:3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文