您可以在同一页面上使用多个引导程序版本吗? [英] Can you have multiple bootstrap versions on the same page?
问题描述
我想在具有旧版引导程序(版本3和引导程序版本4)的页面上嵌入引导程序,但是,存在js冲突.
I'd like embed bootstrap on a page that has an old version of bootstrap (version 3 and version 4 of bootstrap, however, there are js conflicts.
我将其嵌入到我无法控制的第三方网站中.
I'm embedding it in a 3rd party site I have no control over.
是否存在像jQuery这样的引导noConflicts模式( https://api.jquery.com/jQuery.noConflict/)
Is there a bootstrap noConflicts mode like jQuery (https://api.jquery.com/jQuery.noConflict/)
推荐答案
bootstrap确实没有冲突- https://getbootstrap.com/docs/3.4/javascript/
bootstrap does have noConflict - https://getbootstrap.com/docs/3.4/javascript/
less可以用来命名CSS的名称空间,但是,我需要在Bootstraps js中手动命名类/ID的名称...:(
less can be used to namespace the css, however, I needed to manually namespace the classes/id in bootstraps js... :(
这篇关于您可以在同一页面上使用多个引导程序版本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!