js实现视频的无限轮播,不引入任何插件:
1 (c) Copyright 2018 Web牧马人. All Rights Reserved. 2 <!DOCTYPE html> 3 <html lang="zh"> 4 <head> 5 <meta charset="UTF-8" /> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 <meta http-equiv="X-UA-Compatible" content="ie=edge" /> 8 <title>视频无限轮播,样式可自定义</title> 9 <style type="text/css"> 10 *{ 11 margin: 0; 12 padding: 0; 13 } 14 </style> 15 </head> 16 <body> 17 <div class="wrap"> 18 <div class="video_list"> 19 <div class="video_ls"></div>