jquery - 在溢出隐藏的 div 中显示日期选择器?

标签 jquery html css overflow

在我的 Bootstrap 表(我使用 slimScrole)的数据行中有日期选择器(jquery datetimepicker 插件)。 由于 jquery slimScrole table 外层 div 是 overflow: hidden;。所以数据选择器将进入 div 内部,无法显示如下屏幕截图。 enter image description here

如何显示 overflow: hidden; div 中的日期选择器? 下面是 datpicker 输入的代码。内联 CSS 部分来自 slimslider jquery 插件。

<div class="slimScrollDiv" style="position: relative; overflow: hidden; width: 100%; height: auto;">
<div class="table-responsive" style="overflow: hidden; width: 100%; height: auto;">
<table id="basic-datatables-schedules" class="table table-striped table-bordered" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="p-relative">
<input id="start_2559" class="form-control required shiftfromdate" type="text" value="" onkeydown="return false;" style="width:10em;" name="start">
</td>
</tr>
</tbody>
</table>

</div>

最佳答案

移除表格响应式 div 的溢出:隐藏样式

它会起作用

关于jquery - 在溢出隐藏的 div 中显示日期选择器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40903084/

相关文章:

jquery 无法更改内部 html?

javascript - 检查重复的输入组合

jquery - 附加的文本字段不会换行

javascript - 文件上传: Check for file format and then invoke srvlet

html - 容器不收取自动 margin

html - 使菜单项悬停颜色延伸到菜单的边缘

javascript - jquery html() 总是改变内容

html - 使用数据列表进行多项选择

html - 透明文本框 basemap

javascript - 从给定行中选择所有属性值 (jQuery)