CSSjs mobile web page automatically pops up video solution

When writing the website code today, the PC-side banner used this video as the background effect

The PC side looks normal, and then use the mobile phone to test (the website is responsive) and open the website, as shown in the figure

I couldn’t watch anything, and the video popped up directly, so I searched for information on the Internet......

   <script type="text/javascript">
   
   var video=document.getElementById("video"); 
   
   video.controls=false;
   </script>

Just add the above code to the head of the page

The final effect (viewed with a mobile phone): https://www.xinlinggong.top/

Guess you like

Origin blog.csdn.net/wz817zhou/article/details/129528857