<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.2/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.2/js/bootstrap.bundle.js"></script> </head> <body> <div class="p-4"> <h2>自定义范围</h2> <p>如需设置范围菜单的样式,请将 .form-range 类添加到 type="range" 的 input 元素:</p> <form action=/index/demo/form_current.html> <label for="customRange" class="form-label">自定义范围</label> <input type="range" class="form-range" id="customRange" name="points"> <button type="submit" class="btn btn-primary mt-3">提交</button> </form> </div> </body> </html>