@charset "utf-8"; /* css 重置 */ .banner * { margin: 0; padding: 0; list-style: none; } body { margin: 0; padding: 0; } .banner img { border: 0; } .banner a { text-decoration: none; color: #333; } /* 本例子css */ .banner , .banner .bd a { width: 100%; max-width: 100%; height: 10rem; } .banner { height: 10rem; } .banner { overflow: hidden; position: relative; } .banner .bd a { display: block; text-align: center; text-decoration: none; font-size: 1rem; } .banner .bd { position: relative; height: 100%; z-index: 0; } .banner .bd li { zoom:1; vertical-align: middle; } .banner .prev, .banner .next { position: absolute; left: 3%; top: 38%; display: block; width: 2rem; height: 2rem; background: url(/template/images/banner_bt.png) no-repeat; background-size: auto 100%; background-color: rgba(255,255,255,0.2); } .banner .next { left: auto; right: 3%; -ms-background-position-x: -59px; background-position-x: -2rem; } .banner .prev:hover, .banner .next:hover { filter: alpha(opacity=100); opacity: 1; } .banner .prevStop { display: none; } .banner .nextStop { display: none; }