2017-09-26 89 views

回答

0

#video-background { 
 
    position: fixed; 
 
    right: 0; 
 
    bottom: 0; 
 
    min-width: 100%; 
 
    min-height: 100%; 
 
    width: auto; 
 
    height: auto; 
 
    z-index: -100; 
 
} 
 

 
h1 { 
 
    position: absolute; 
 
    top: 20%; 
 
    width: 100%; 
 
    font-size: 55px; 
 
    text-align: center; 
 
    color: white; 
 
}
<h1>Edit Here</h1> 
 

 

 
<video autoplay loop id="video-background" muted plays-inline> 
 
    <source src="https://player.vimeo.com/external/158148793.hd.mp4?s=8e8741dbee251d5c35a759718d4b0976fbf38b6f&profile_id=119&oauth2_token_id=57447761" type="video/mp4"> 
 
</video>

馬特·格羅斯創造了這個Design

+0

取而代之的VIMEO鏈接,可以提供視頻的本地地址。 –

+0

謝謝。我正在努力去做。 –

+0

兄弟...你的html vimeo鏈接在這裏https://player.vimeo.com/external/158148793.hd.mp4?s=8e8741dbee251d5c35a759718d4b0976fbf38b6f&profile_id=119&oauth2_token_id=57447761如果我想在這裏展示youtube視頻,我該怎麼做? ? –