【发布时间】:2021-08-19 15:57:55
【问题描述】:
我正在尝试将我的网站从 Bootstrap 3 升级到 Bootstrap 4。出于某种奇怪的原因,这会破坏我的 jquery 滑块。它只显示一个正方形(如其中一个手柄?)。控制台中没有错误。
这是我的精简代码:
<head>
<link href="/xana/js/jquery-ui-1.11.4/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/xana/css/bootstrap-4.1.3/bootstrap.min.css" rel="stylesheet"/>
<script src="/xana/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="/xana/js/jquery-ui-1.11.2.custom/jquery-ui.min.js" type="text/javascript"></script>
<script src="/xana/js/popper.min.js"type="text/javascript"></script>
<script src="/xana/js/bootstrap-4.1.3/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<span id="trans-slider" class='center-block'></span>
</body>
<script type="text/javascript">
//transparency slider updates map transparency
$('#trans-slider').slider({
value: 100,
range: "min",
min: 0,
max: 100,
animate: true,
orientation: "horizontal",
stop: function (event, ui) {
updateLayerTrans(ui.value);
}
});
</script>
【问题讨论】:
标签: javascript jquery twitter-bootstrap slider