JavaScript原生实现楼梯插件
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript原生实现楼梯插件</title> <style> * { margin: 0; padding: 0; } .container { } .container .section { height: 300px; } .container .section:nth-last-child(2) { height: 1000px; } .container .aside { position: fixed; right: 25px; top: 100px; } .container .aside .list { list-style: none; border-radius: 4px; overflow: hidden; } .container .aside .list .item:first-child { } .container .aside .list .item { width: 40px; height: 40px; background-color: white; font-size: 12px; text-align: center; line-height: 40px; border-bottom: 1px