2016-11-15 81 views
1

我在我製作的網頁上有幾個視頻,上面有一個固定的div,當我向下滾動頁面時,視頻標籤的控制欄通過固定的DIV。 <video width="560 height="315" controls="true"> <source src="video.mp4" type="video/mp4" /> </video>HTML中視頻標籤的問題

這裏是固定的DIV + CSS

.info { 
background-image: url('http://bluewallpaperbackground.weebly.com/uploads/1/9/7/6/19768865/8686693_orig.jpg'); 
width: 100%; 
height: 37%; 
border-bottom: 2px solid white; 
padding: 10px; 
position: fixed; 
} 

The play bar is visible through the fixed div, which is the brick with the text

+0

你是否在使用'opacity:...'某處? –

+0

沒有,任何地方都沒有不透明 –

+0

你有鏈接到我可以檢出的頁面或圖像? –

回答

2

嘗試將固定div來有999

.info { 
z-index: 999 ; 
} 

的Z-index屬性的z-index指定元素的堆棧順序。堆棧順序較大的元素始終位於堆棧順序較低的元素前面。

+0

問題解決了,謝謝! –

+0

z-index屬性指定元素的堆棧順序。堆棧順序較大的元素始終位於堆棧順序較低的元素前面。 – JSouthward