Eyecon 的 Bootstrap 范围滑块将多个滑块相互叠加。在这里查看错误:http: //jsfiddle.net/GqMHM/
我从作者站点获取源代码,以及本站点上的示例:http ://www.qualitylink.com.br/slider/slider.html
对于我的一生,我无法弄清楚为什么我在所有测试环境中都会看到这个 css 错误。
<!-- Notice this exact example works perfectly@ http://www.qualitylink.com.br/slider/slider.html -->
<html>
<head>
<meta charset="utf-8">
<title>Slider</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://www.qualitylink.com.br/slider/css/bootstrap.min.css">
<link rel="stylesheet" href="http://www.qualitylink.com.br/slider/css/bootstrap.slider.css">
<script type="text/javascript" src="http://www.qualitylink.com.br/slider/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.slider').slider({
min: 5,
max: 500,
step: 5,
value: [5,200]
});
$('.tooool').tooltip();
});
</script>
</head>
<body>
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<br><br>
<div class="slider slider-horizontal" style="width: 220px;">
<div class="slider-track"><div class="slider-selection" style="left: 0%; width: 27.272727272727273%;"></div>
<div class="slider-handle round" style="left: 0%;"></div>
<div class="slider-handle round" style="left: 27.272727272727273%;"></div>
</div>
<div class="tooltip top" style="top: -24px; left: 5.5px;">
<div class="tooltip-arrow"></div><div class="tooltip-inner">5 : 140</div>
</div>
<input type="text" class="slider" style="">
</div>
<br><br>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
<script src="http://www.qualitylink.com.br/slider/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://www.qualitylink.com.br/slider/js/bootstrap.slider.js"></script>
</body>
</html>