如何置jquery-ui datepicker的z-index值的呢?

分析datepicker的源码,发现弹出的日期选择框的z-index值是:$(input).zIndex() + 1。继续分析$.zIndex()函数(在jquery-ui.js文件中),发现当input的css position值为absolute、fixed或relative时,$.zIndex()函数返回的值就是input css 的z-index值。

例如:<input type="text" name="add_date" />这样设置时,弹出的jquery-ui datepicker日期选择框的z-index值就设置为1001了。

相关文章:

  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-01-08
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2021-05-21
  • 2022-01-17
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案