css动画轮播播放
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> *{ margin: 0; padding: 0; text-decoration: none; } ul li{ list-style: none; } .baner-box{ position: relative; width: 400px; height: 200px; overflow: hidden; } .banner{ width:1600px; position: absolute; left:0; animation-name: bannerMove; animation-duration: 8s; animation-iteration-count: infinite; } @keyframes bannerMove { 0%,30%{ left: 0; } 35%,65%{ left: -400px; } 70%,99%{ left: -800px; } 100%{ left: -1200px; } } .banner li{ float: left; width: 400px; height: 200px; } </style> </head> <body> <div