简体   繁体   English

CSS UI框架和jQuery UI有什么区别

[英]What's the difference between CSS UI framework and jQuery UI

I noticed that CSS Framework such as bootstrap and w3.css can create webpage ui widgets such as button . 我注意到CSS框架(例如bootstrapw3.css可以创建网页ui小部件(例如button But Javascript library jQuery-ui can also create button 但是Javascript库jQuery-ui也可以创建button

What's the difference between these two approaches? 这两种方法有什么区别?

The main difference is the author. 主要区别在于作者。 Another difference might be what components they provide. 另一个区别可能是它们提供了哪些组件。

They're doing the same thing but just have different authors. 他们在做同样的事情,但作者不同。 Even though Bootstrap is a CSS framework, it's still using JavaScript for some of the interactive elements like "collapse" (which jQuery UI calls "accordion"). 尽管Bootstrap是一个CSS框架,但它仍将JavaScript用于某些交互式元素,例如“折叠”(jQuery UI称为“手风琴”)。 Bootstrap wrote their JavaScript to be compatible with jQuery. Bootstrap编写了JavaScript以与jQuery兼容。

Bootstrap (assuming v3): 引导程序(假设为v3):

Quoting directly from bootstrap's website: 直接从bootstrap网站上报价:

Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. Bootstrap是最流行的HTML,CSS和JS框架,用于在网络上开发响应式,移动优先项目。

Which means that it provides the following features: 这意味着它提供以下功能:

  1. Is a framework which allows you to create responsive web application which work across multiple devices like PC, Tablets and Mobile. 是一个框架 ,可让您创建可在多种设备(例如PC,平板电脑和移动设备)上运行的自适应Web应用程序。

  2. It provides a 12 column responsive grid system which works across devices. 它提供了一个12列响应式网格系统,可跨设备工作。

  3. Supports SASS Preprocessor , which make writing CSS much more efficient with concepts like variables, mixins, inheritance etc. 支持SASS Preprocessor ,通过诸如变量,mixin,继承等概念,可以更高效地编写CSS。

  4. Also provides a wide variety of components which makes web development a breeze. 还提供了使Web开发变得轻而易举的各种组件 These components are built using javascript and jQuery. 这些组件是使用javascript和jQuery构建的。

  5. A lot of themes which you can use for your web app. 您可以将许多主题用于Web应用程序。

jQueryUI jQueryUI的

Quoting directly from jQueryUI : 直接从jQueryUI引用:

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. jQuery UI是在jQuery JavaScript库之上构建的一组精选的用户界面交互,效果,小部件和主题。 Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice. 无论是构建高度交互的Web应用程序,还是只需要向表单控件添加日期选择器,jQuery UI都是理想选择。

Which basically means that it provides: 这基本上意味着它提供:

  1. A set of widgets/components like calendar, dropdowns etc which you can use with your web application. 一组可与Web应用程序一起使用的小部件/组件,例如日历,下拉菜单等。

  2. Interactions like drag and drop. 诸如拖放之类的交互。

  3. Themes for creating custom look and feel for your components. 用于为组件创建自定义外观的主题。

To sum it up, Bootstrap is a framework for building responsive web applications whereas jQueryUI is essentially a widget/interaction library. 概括地说,Bootstrap是一个用于构建响应式Web应用程序的框架,而jQueryUI本质上是一个小部件/交互库。 Note that you can use jQueryUI widgets inside your Bootstrap based application. 请注意,您可以在基于Bootstrap的应用程序中使用jQueryUI小部件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM