本文共 7072 字,大约阅读时间需要 23 分钟。
zurb是什么网站
Often, when you talk about front-end frameworks, , , and are usually the ones that are brought up.
A lot of people gravitate towards Bootstrap because of its ease of use, simple docs, great features, adoption in the industry, extensibility... I guess this list could go on and on. I've always seen Foundation as an alternative but never looked into what features they offered and if they could be a viable alternative to Bootstrap to be honest. There wasn't really a need to since Bootstrap did通常,在谈论前端框架时,通常会 , 和 。
许多人倾向于使用Bootstrap,因为它的易用性,简单的文档,强大的功能,在行业中的采用,可扩展性……我想这个清单可能还会持续下去。 我一直将Foundation视为替代方案,但从未研究过它们提供了哪些功能以及说实话它们是否可以替代Bootstrap。 由于Bootstrap可以完成我需要的 most of the things I needed from it. Recently, however, ZURB has been talking about Foundation for Apps. The way they are looking at modern applications really makes sense and fills a growing need that modern websites need to feel more interactive like their mobile counterparts. Foundation for Apps consists of three main parts: 大部分工作 ,因此实际上并不需要这样做。 但是,最近,ZURB一直在谈论Foundation for Apps。 他们看待现代应用程序的方式确实很有意义,并且满足了现代网站不断增长的需求,即现代网站需要像移动网站一样更具交互性。 Apps for Foundation由三个主要部分组成:index.html
where we can test out CSS and JS features. index.html
中提供一个示例站点,在其中可以测试CSS和JS功能。 normalize.css
and normalize.css
和 foundation.css
. Those will be enough to get the classes we need and then we can add our own stylings in a custom stylesheet that we'll call foundation.css
。 这些就足以获取我们需要的类,然后我们可以在自定义样式表中添加自己的样式,我们将其称为 app.css
: app.css
: Now we have access to the classes that are necessary to build out all parts of Foundation. Let's say we needed buttons. The syntax isn't too far off of the Bootstrap way. You have
.button
, .button
, .tiny
, .tiny
, .small
, .small
, .large
, .large
, .radius
, .radius
, .round
, .round
, .success
, and .success
和 .alert
. We could create buttons by writing: .alert
。 我们可以通过编写以下内容来创建按钮: Tiny Primary Radius SuccessRounded Alert
See the Pen by Chris Sevilleja () on .
见笔克里斯Sevilleja( 上) 。
jquery.js
, jquery.js
, foundation.min.js
, and we'll need to initialize Foundation like so: foundation.min.js
,并且我们需要像这样初始化Foundation: By adding that $(document).foundation();
line, we'll be able to define our JavaScript elements just by using $(document).foundation();
行,只需使用 HTML5 data-attributes. Here's an example of the dropdown split button and the tabs: HTML5 data-attributes就能定义JavaScript元素。 这是下拉拆分按钮和标签的示例: See the Pen by Chris Sevilleja () on .
请参阅上Chris ( ) 的Pen 。
See the Pen by Chris Sevilleja () on .
见笔克里斯Sevilleja( 上) 。
See the Pen by Chris Sevilleja () on .
见笔克里斯Sevilleja( 上) 。
See the Pen by Chris Sevilleja () on .
That's a giant list. The docs can definitely show all that off best, so head on over and check out the great CSS features. Foundation is very polished in all of its CSS elements and I like the additions of pricing table, icon bar, switches, and some useful visibility and utility classes that could be used often.见笔由克里斯Sevilleja( 上) 。
那是一个巨大的清单。 这些文档绝对可以充分展现所有优势,因此请继续阅读并查看出色CSS功能。 Foundation的所有CSS元素都非常精致,我喜欢添加定价表,图标栏,开关以及一些经常使用的有用的可见性和实用程序类。See the Pen by Chris Sevilleja () on .
Here's a quick list of the other JS features:请参阅上的Chris ( ) 的Pen 。
以下是其他JS功能的快速列表:See the Pen by Chris Sevilleja () on .
请参阅上Chris ( ) 的Pen 。
翻译自:
zurb是什么网站
转载地址:http://kiywd.baihongyu.com/