有没有通用的CSS库?

发布于 2024-09-16 03:13:35 字数 234 浏览 2 评论 0原文

我正在寻找包含所有常见 CSS 最佳实践的 CSS 库。

例如块居中样式:

.block-center {
   margin-left : auto;
   margin-right : auto;
}

<div class="myClass block-center" />

我希望这样的库作为单独的 css 文件分发,我可以在我的项目中添加和使用它。

I'm looking for CSS library that hold all common css best practices.

For example block centering style:

.block-center {
   margin-left : auto;
   margin-right : auto;
}

<div class="myClass block-center" />

I want such library to be distributed as separate css file which I can add and use in my projects.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

简单 2024-09-23 03:13:35

我认为你的意思是CSS框架:它们有。仅举几例:

每个人和他们的母亲都有一个 CSS 框架:没有最好的框架,而且他们对什么都有自己的解释构成“最佳实践”。这实际上取决于哪种适合您自己的用途。

另请参阅 bobince什么是最好的 CSS 框架,它们值得付出努力吗? 为什么 CSS 框架确实如此不必要。

I think you mean CSS framework: there are tons of them. Just to name a few:

Everyone and their mother has a CSS Framework: there is no best one, and they all have their own interpretation of what constitutes "best practices". it really depends on what one fits your own use.

Also see bobince's answer on What is the best CSS Framework and are they worth the effort? for why CSS Frameworks are really unnecessary.

谢绝鈎搭 2024-09-23 03:13:35

你应该尝试使用 Twitter Bootstrap,它非常容易使用,YouTube 上有很多教程。

在发现这个问题后我就不再使用其他 CSS 方法了。

You should try using Twitter Bootstrap, it is very easy to use, there are many YouTube tutorials.

I stopped using other CSS methods after finding out about it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文