Css conflicts between bootstrap and jQuery. Gantt, and bootstrapcss conflicts.

Source: Internet
Author: User

Css conflicts between bootstrap and jQuery. Gantt, and bootstrapcss conflicts.
Bootstrap is a widely used front-end framework, and jQuery. Gantt is also a useful plug-in for drawing Gantt charts. When they are used at the same time, it is found that the Gantt chart shows an exception. If you do not need bootstrap.css, the Gantt chart will not have any problems and it is easy to locate the css conflict issue of bootstrap. However, it takes some effort to locate the specific style. 1. First, let's look at the recurring style in the Gantt chart and bootstrap. There is one. row, so I changed all the row of the gantt plug-in to ganttrow, and found no effect. 2. the style used by bootstrap for tags such as body and div is not affected. 3rd, the last step is to use a very stupid binary method to delete the content in bootstrap.css, and then check whether the Gantt chart is abnormal. The final positioning result is caused by the following styles in bootstrap.css. It is true that all the labels * are missing during troubleshooting. * {-Webkit-box-sizing: border-box;-moz-box-sizing: border-box ;}Solution:If the div of a gantt chart is like this "<div class = 'gantt'> </div>", you only need to add it to the custom css. gantt div {-webkit-box-sizing: content-box;-moz-box-sizing: content-box; box-sizing: content-boxafter the custom CSS is loaded after bootstrap.css.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.