大佬教程收集整理的这篇文章主要介绍了css – 规模的HTML5视频,并打破整个网站的宽高比,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
谢谢你的帮助!
这里是我的html和css代码
HTML:
<!DOCTYPE HTML> <html land="en"> <head> <link rel="stylesheet" type="text/css" href="html5video.css" /> <title>html 5 video test</title> </head> <body id="index"> <video id="vidtest" autoplay> <source src="data/comp.ogv" type="video/ogg" width="auto" > </video> <div class="cv"> <p> Lorem ipsum dolor sit amet,consetetur sadipscing elitr,sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> </div> </body> </html>
CSS:
body { BACkground-color:#000000; } #vidtest { position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; width: 200%; height: 100%; z-index: -1000; } .cv { width: 800px; position:relative; text-align:center; margin-top: 100px; color:#FFFFFF; font-family:"Arial"; font-size: 10px; line-height: 2em; text-shadow: 3px 3px 2px #383838; margin-left: auto; margin-right: auto; }
以上是大佬教程为你收集整理的css – 规模的HTML5视频,并打破整个网站的宽高比全部内容,希望文章能够帮你解决css – 规模的HTML5视频,并打破整个网站的宽高比所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。