美国视频Youtube赚钱攻略

javascript为非用户嵌入Youtube视频

-youtube视频高度js -video

is there a way to embedd youtube video as a background of a web page with html, css and javascript with the actual site content on top? how?

basically, it should be a video that auto plays, is muted (but the volume can be turned up by the visitor) and the site should work well being !on top of it (the site is minimal so most of the video should be visible at all times). the site is minimal enough that no scroll bars would be visible by default in most browsers and the video should be 100% width and height.

examples? links?

tried Google but couldn't find it.

also it should work for videos not on youtube.

html5 and css3 preferred :)

I REALLY NEED A LIVE EXAMPLE SOMEWHERE (or as close to) because i tried it all (as available via google and failed)

also, related - there doesn't seem to be (as per my own research) any way of slowing down the play of youtube videos (for example: 24 times slower) - true / false?

javascript html css video 26k

youtube视频高度js

我正在实验将youtube视频嵌入到我的项目中,它有用,我也实验使用 padding-bottom: 56.25% 的16:9比例,就像那边的大多数教程一样.

问题是,视频的高度碰巧是100%的容器,我!应该在CSS中修复什么来挣脱顶部/底部黑栏?

这是我的代码pen attemp: https://codepen.io/DieByMacro/pen/QXmJez

.HomePage-homeVideoWrapper-274 { height: 0; margin: auto; z-index: 1; position: relative; max-width: 720px; padding-top: 25px; padding-bottom: 56.25%; } .HomePage-homeVideoWrapper-274 iframe { top: 0; left: 0; width: 100%; height: 100%; z-index: 5; position: absolute; } <div class="HomePage-homeVideoWrapper-274"> <iframe height="auto" src="https://www.youtube.com/embed/Qjmp2r2OsZ4" title="Home-admin tutorial" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe> </div>

大概你应该实验!这样的事情。请记着,这是一个样本高度和宽度。盼望这有帮助

<embed width="420" height="345" src="URL OF THE YOUTUBE VIDEO" type="application/x-shockwave-flash">

本文网址: http://www.2217pacific.com/pp/20201012125915_8480_1586175870/home