Bootstrap 和 Metro ui css javascript 冲突 [英] Bootstrap and metro ui css javascript conflict

查看:28
本文介绍了Bootstrap 和 Metro ui css javascript 冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能听起来像一个愚蠢的问题,但我有 2 天的时间来介绍问题并修复它们,同时试图使我当前的应用程序具有新的 Metro ui css

This might sound like a stupid question but I have had 2 days introducing problems and fixing them while trying to make my current app have the new metro ui css

我对 rails 和 css 也很陌生.

I am pretty new to rails, and css as well.

我从 twitter bootstrap 开始,并包含了 sass gem.然后我偶然发现了 Metro ui css 并希望为我的应用程序提供这种外观和感觉.但到那时,我已经实现了很多引导程序的外观和感觉,以及其中一些包含 javascript 的元素.下拉菜单和手风琴.

I started with twitter bootstrap and included the sass gem. Then I stumbled across metro ui css and wanted to have that look and feel for my app. But by that time, I have implemented a lot of bootstrap look and feel and some of its elements which have javascript for ex. dropdown menus and accordians.

现在,我也安装了 Metro ui css gem.但现在我看到了很多冲突,一半的东西不起作用

Now, I have installed metro ui css gem too. But now I see a lot of conflict and half of the things not working

问题:1. 我想有些东西对前夫不起作用.由于 bootstrap 和 Metroui 中的 javascropt 冲突导致手风琴和下拉菜单.这是正确的原因吗?2. 我可以并且应该同时使用它们吗?3.如果我为我的应用程序使用bootstrap并且只是从metroui复制modern.css并且继续没有任何问题或者css也会有一些冲突.

Questions: 1. I guess somethings are not working for ex. accordion and dropdown menus because of javascropt conflict in bootstrap and metroui. Is it the correct reason? 2. Can I and should I use both of them together? 3. If I use bootstrap for my app and just copy the modern.css from metroui and go on without any problems or css will have some conflicts too.

我想将外观和感觉更改为 Metro ui css,但不更改引导程序功能.我应该坚持一个吗?

I want to change the look and feel to metro ui css but without changing the bootstrap functionality. Should I stick to just one?

提前致谢

推荐答案

它们是两个用于同一目的的库/框架,它们会产生冲突.

They are two libraries/frameworks for the same purpose, they are going to butt heads.

这就像把两个司机放在一辆车里,要找到折衷方案并不容易!

It's like putting two drivers in one car, It ain't gonna be easy to find a compromise!

我的建议是选择一个你喜欢的并坚持下去.

My suggestion is to pick one you like and stick with it.

如果您喜欢 Metro UI 的感觉,请使用它,然后将引导程序作为如何实现某些事情的灵感.

If you like the metro UI feel then use that, then look to bootstrap as inspiration on how to implement certain things.

这篇关于Bootstrap 和 Metro ui css javascript 冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆