Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在输入下打开 datetimepicker 而不是在输入上方打开它?我知道有一些选择器在盒子里有它,但我没有在这个中找到这样的选项。
使用版本:5.0.1 https ://tempusdominus.github.io/bootstrap-4/
5.0.1
您可以使用 widgetPositioning 选项
myDatetimeInput.datetimepicker({ format: 'DD MMM YYYY HH:mm', widgetPositioning: { vertical: 'bottom', // always opens to buttom direction }, });