css - How to make video responsive in full height on mobile?

I have a problem I don´t find the way to solve it.I´m trying to make a background video to be responsive, so it looks f

I have a problem I don´t find the way to solve it. I´m trying to make a background video to be responsive, so it looks full height on mobile, and it´s almost done, but it shows two borders on top and bottom and I don´t find how to solve it. The video is loaded from Vimeo.

Could anyone please help me?? It´s a problem with css

And this is the css code I´m using :

.fluid-width-video-wrapper { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; z-index: -1 !important; pointer-events: none !important; overflow: hidden !important;

} .fluid-width-video-wrapper iframe { width: 100vw !important; height: 56.25vw !important; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 / min-height: 100vh !important; min-width: 177.77vh !important; / Given a 16:9 aspect ratio, 16/9*100 = 177.77 */ overflow: hidden !important; position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }

Please help !! Thanks a lot !!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744891262a4599427.html

相关推荐

  • css - How to make video responsive in full height on mobile?

    I have a problem I don´t find the way to solve it.I´m trying to make a background video to be responsive, so it looks f

    2天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信