Home > Web Front-end > JS Tutorial > Bug fix for BOOTSTRAP time control displayed under modal box_javascript skills

Bug fix for BOOTSTRAP time control displayed under modal box_javascript skills

WBOY
Release: 2016-05-16 16:15:44
Original
1144 people have browsed it

To hit the nail on the head: modify the bootstrap-datepicker.js file

Copy code The code is as follows:

var zIndex = parseInt(this.element.parents().filter(function(){
Return $(this).css('z-index') !== 'auto';
}).first().css('z-index')) 10;

Change 10 to 99999999;

Reason: z-index is to set the stacking order of elements. From negative to positive means stacking from bottom to top. Here, the css method is used to set z-index to 10, and it is an inline style, which cannot be modified using a style sheet.

Summary: The method is very simple, but the process of finding the cause is very complicated. It took me a long time to find a relatively simple solution. Friends who have the same needs can refer to it. I hope you all like it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template