最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Bootstrap-datetimepicker inside <table> not showing properly - Stack Overflow

programmeradmin3浏览0评论

I'm using Eonasdan/bootstrap-datetimepicker inside a <table/> and it works perfectly in some rows, however in the last rows the datetimepicker popup doesn't show in the right place where it should be.

Here's an image that illustrates the problem

And here's JSFiddle where you can try it out.

I'm using Eonasdan/bootstrap-datetimepicker inside a <table/> and it works perfectly in some rows, however in the last rows the datetimepicker popup doesn't show in the right place where it should be.

Here's an image that illustrates the problem

And here's JSFiddle where you can try it out.

Share Improve this question edited Apr 12, 2016 at 9:25 Rohit Agre 1,5281 gold badge14 silver badges25 bronze badges asked Apr 12, 2016 at 9:01 LinesofcodeLinesofcode 5,90314 gold badges70 silver badges131 bronze badges 3
  • you have to customize the style (css) – Oki Erie Rinaldi Commented Apr 12, 2016 at 9:04
  • Or, change the appearance position of datetimepicker. The datetimepicker widget needs space. – Oki Erie Rinaldi Commented Apr 12, 2016 at 9:06
  • Try wrapping the datetimepicker iniside a inlin-block or block element. – Edis Golubich Commented Apr 12, 2016 at 9:08
Add a ment  | 

2 Answers 2

Reset to default 13

Apply position:relative to the <td> of your table. will solve your issue. Here's updated fiddle https://jsfiddle/znLmpgz7/1/

.table td{
  position:relative;
}

I have solved the issue by adding position:relative; rule to .bootstrap-datetimepicker-widget class in bootstrap-datetimepicker.min.js. and i also have some top position issue so i just set "top:0px !important" in css.

发布评论

评论列表(0)

  1. 暂无评论