[英]Background video with Html5 and CSS not fixed attachment
video { width: 100%; z-index: 1; position: fixed; }
我嘗試這個,它工作正常,但整個身體都固定了...
您應該設置選擇器,例如:
#headerid video {
width: 100%;
z-index: 1;
position: fixed;
}
它將視頻固定在headerid元素中。 它可以是div,但必須固定div的寬度和高度。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.