javascript - The level of h5 video is too high and it floats above the div. How to solve it?
typecho
typecho 2017-06-24 09:43:21
0
3
2059
When using the video tag to create video elements in

h5, the level of some Android videos will become the highest, which cannot be solved using z-index. What should I do?

typecho
typecho

Following the voice in heart.

reply all(3)
習慣沉默
<video playsinline -webkit-playsinline ></video>

If that doesn’t work:

video{
    display : none;
}

setInterval(function(){
    canvas.getContext('2d').drawImage(video,0,0);
},16);
某草草

Try it in an absolutely positioned container.

曾经蜡笔没有小新

Some Android webviews will actively start the system's built-in player when they detect that the video tag is playing, and the browser will be covered by the pop-up player.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!