轮播图
html,css代码部分 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style media="screen"> #imgArea{ width: 510px; height: 286px; margin: 100px auto; overflow: hidden; position: relative; } #inner{ width: 99999px; position: absolute; left: 0; top: 0; overflow: hidden; } #inner a{ float: left; } #inner img{ display: block; width: 510px; } #btn{ width: 510px; margin: 0 auto; text-align: center; } #btn button { width: 60px; height: 40px;