HTML5-video-stretch-fullscreen.css - Gists · GitHub
Có thể bạn quan tâm
Skip to content Search Gists Search Gists All gists Back to GitHub Sign in Sign up Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }}
julienchazal/HTML5-video-stretch-fullscreen.css Created December 22, 2015 09:49 Show Gist options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment You can’t perform that action at this time.
Instantly share code, notes, and snippets.
- Download ZIP
- Star (1) You must be signed in to star a gist
- Fork (1) You must be signed in to fork a gist
- Embed Select an option
- Embed Embed this gist in your website.
- Share Copy sharable link for this gist.
- Clone via HTTPS Clone using the web URL.
No results found
Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/julienchazal/7aaaa329df8fbd28dc1f.js"></script> - Save julienchazal/7aaaa329df8fbd28dc1f to your computer and use it in GitHub Desktop.
- Embed Embed this gist in your website.
- Share Copy sharable link for this gist.
- Clone via HTTPS Clone using the web URL.
No results found
Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/julienchazal/7aaaa329df8fbd28dc1f.js"></script> Save julienchazal/7aaaa329df8fbd28dc1f to your computer and use it in GitHub Desktop. Download ZIP Raw HTML5-video-stretch-fullscreen.css This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters| // http://fvsch.com/code/video-background/ |
| #video-bg { |
| position: fixed; |
| top: 0; right: 0; bottom: 0; left: 0; |
| overflow: hidden; |
| } |
| #video-bg > video { |
| position: absolute; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| } |
| /* 1. No object-fit support: */ |
| @media (min-aspect-ratio: 16/9) { |
| #video-bg > video { height: 300%; top: -100%; } |
| } |
| @media (max-aspect-ratio: 16/9) { |
| #video-bg > video { width: 300%; left: -100%; } |
| } |
| /* 2. If supporting object-fit, overriding (1): */ |
| @supports (object-fit: cover) { |
| #video-bg > video { |
| top: 0; left: 0; |
| width: 100%; height: 100%; |
| object-fit: cover; |
| } |
| } |
Từ khóa » Html5 Video Stretch Css
-
HTML 5 Video Stretch - Stack Overflow
-
Fluid Width Video | CSS-Tricks
-
Html5 Video Stretch? [SOLVED] - DaniWeb
-
HTML 5 Video Stretch - Newbedev
-
HTML Video Height Attribute - W3Schools
-
CSS Object-fit Property - W3Schools
-
Emulating Background-size: Cover For HTML5 Video (CSS Only)
-
How Can You Stretch The Width Of The Loaded Visible Video In Html5?
-
deoHeight - Web APIs - MDN Web Docs
-
Control HTML5 Video Player Loop With JavaScript - The Object-fit Css ...
-
How To Set The Height And Width Of The Video Player In HTML5
-
Object-fit - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
-
How Can I Stretch Html5 Video To Full Height? - AngularFix
-
Html5 Video Fit Width Code Example - Code Grepper