Change background-color of html5 video element

依然范特西╮ 提交于 2019-12-05 00:45:09
mahega

Try this CSS:

.pk_video {
     background-color: red !important; /* or whatever you want */
}
Sabba Keynejad

So i had this annoying white bar, I got rid of it using. I applied it the the containing div.

background-color: transparent;

Alternatively use

 background-color: rgba(0, 0, 0, 0);

Hope that helps

Just add the background color to the html code itself. For example:

<video width="100%" height="100%" style="background-color: #fff;" src=""></video>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!