HTML5 移动端 实现滚动条
实现滚动条 相关代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> *{ margin: 0; padding: 0; } html,body{ height: 100%; overflow: hidden; } #wrap{ position: absolute; top: 0; right: 0; width: 20px; height: 100%; background-color: #9ACD32; } #inner{ position: absolute; top: 0; left: 0; width: 100%; background-color: chocolate; } #content{ position: absolute; } </style> </head> <body> <div id="content"></div> <div id="wrap"> <div id="inner"></div> </div> </body> <script type="text/javascript"> var inner=document.getElementById('inner'); var content=document