如何选择 CSS 框架?

2023-06-14前端开发问题
0

本文介绍了如何选择 CSS 框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在开发一个公司网站,我认为我应该开始使用 CSS 框架.周围有很多 CSS 框架,最常用的一个是什么,为什么人们会选择使用它而不是其他框架?

I'm working on a company website and I figure that I should start using a CSS framework. There's quite a number of CSS frameworks around, what's the most commonly used one and why would people choose to use it instead of the other frameworks?

推荐答案

首先,不要自动假设 CSS 框架是必要的,甚至是可取的.取决于你在做什么以及你在标记 + CSS 方面有多好,这可能不值得.维基百科文章几乎没有触及我在网上看到的辩论的表面,例如,这个 对 YUI Grids 框架的批评.

First, don't just automatically assume a CSS framework is necessary, or even desirable. Depending on what you're doing and how good you are at markup + CSS, it may not be worth it. The Wikipedia article barely scratches the surface of the debate I've seen online, e.g., this criticism of the YUI Grids framework.

如果您已经决定 CSS 框架适合您,那么您需要决定它将为您解决哪些问题.获得该列表后,您可以开始比较不同的列表,看看它们如何解决您的问题.

If you've decided that a CSS framework is for you, then you need to decide what problems it will be solving for you. Once you have that list, you can start comparing different ones to see how well they address your problems.

最后,有许多次要因素可能会改变您的特定应用程序的平衡.已经在网站上使用 YUI?然后重置,基础、字体和Grids 组合可能会遇到问题,等等.

Finally, there are any number of minor factors that may shift the balance for your particular application. Already using YUI on the site? Then the Reset, Base, Fonts, and Grids combo may get a bump, etc.

我最常看到的两个参考是 YUI 和 BluePrintCSS(这里是 比较).

The two I've seen reference most often are YUI's and BluePrintCSS (here's a comparison).

更新:我没有看到 CSS 框架明确解决的一件事是 将 Web 上的类型设置为基线网格(参见这篇关于垂直节奏作曲的文章a> 了解更多详情).

UPDATE: One thing I haven't seen explicitly addressed by a CSS framework is Setting Type on the Web to a Baseline Grid (see this article on composing to a vertical rhythm for more details).

这篇关于如何选择 CSS 框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

layui 单选框、复选框、下拉菜单不显示问题如何解决?
1. 如果是ajax嵌套了 页面, 请确保 只有最外层的页面引入了layui.css 和 layui.js ,内层页面 切记不要再次引入 2. 具体代码如下 layui.use(['form', 'upload'], function(){ var form = layui.form; form.render(); // 加入这一句});...
2024-11-09 前端开发问题
313

layui要如何改变时间日历布局大小?
问题描述 我想改变layui时间日历布局大小,这个要怎么操作呢? 解决办法 可以用css样式对时间日历进行重新布局,具体代码如下: !DOCTYPE htmlhtmlheadmeta charset="UTF-8"title/titlelink rel="stylesheet" href="../../layui/css/layui.css" /style#test-...
2024-10-24 前端开发问题
271

CoffeeScript 总是以匿名函数返回
CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)...
2024-04-20 前端开发问题
13

getFullYear 在一年的第一天返回前一年
getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)...
2024-04-20 前端开发问题
6

如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?
How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?(如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?) - IT屋-程序员软件开发技术分享社...
2024-04-20 前端开发问题
6

如何在开发网站时使用coffeescript?
How to use coffeescript in developing web-sites?(如何在开发网站时使用coffeescript?)...
2024-04-20 前端开发问题
10