我正在使用引导时钟选择器( http://weareoutman.github.io/clockpicker/ )。我无法自动调整时钟选择器位置。
这是时钟选择器的代码:
$('.clockpicker').clockpicker({
placement: 'bottom',
align: 'left',
autoclose: true,
donetext: 'Done',
//twelvehour: true,
});
我的客户非常喜欢这个插件,他希望我在他的应用程序中使用这个插件。但我没有找到任何自动调整时钟选择器的解决方案。有人有想法吗?我将非常感激...
最佳答案
你可以试试这个
<div class="input-group clockpicker">
<input type="text" readonly="" class="form-control" id="from_time" name="from_time" value="10:00">
<span class="input-group-addon clock_icon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
<script type="text/javascript">
$('.clockpicker').clockpicker({
placement: 'bottom',
align: 'left',
autoclose: true,
donetext: 'Done',
});
</script>
关于jquery - 模式弹出窗口中的引导时钟选择器自动调整问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45562218/