龙岩易富通网络科技有限公司

龙岩小程序开发,龙岩分销系统

Jquery date picker z-index 问题,Timepicker,层叠样式z-index

2015.09.10 | 872阅读 | 0条评论 | 未命名

在使用 Jquery date Timepicker 时候 由于还使用了其他弹出层,导致层叠样式出现些问题。 总结下解决方法 方法一:css里加入这么一行 .ui-datepicker { z-index:9999 !important} 方法二: $('#timepicker').datetimepicker({ beforeShow: function() { setTimeout(function(){ $('.ui-datepicker').css('z-index', 9); }, 0); } }); 方法三: $('#timepicker').datetimepicker({ beforeShow:function(input) { $(input).css({ "position": "relative", "z-index": 999999 }); } });

赞 (

发表评论