与 LESS css 一起使用的最佳网格框架是什么?

发布于 2024-09-28 18:08:04 字数 1539 浏览 2 评论 0原文

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

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

发布评论

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

评论(4

心碎的声音 2024-10-05 18:08:04

你不能在#main 中嵌套#col1 和#col2 吗?

#main {
   #col1 {.alpha; .grid_3;}
   #col2 {.omega; .grid_3;}
}

应该给出输出 #main #col1 {rendered CSS code}

You can't nest #col1 and #col2 in #main?

#main {
   #col1 {.alpha; .grid_3;}
   #col2 {.omega; .grid_3;}
}

Should give the output #main #col1 {rendered CSS code}

原谅我要高飞 2024-10-05 18:08:04

我正在使用带有 LESS 的 Blueprint,它工作得非常漂亮。您只需要做一件事。在 HTML 中,确保基本 div 具有 class="container"。如果你这样做了,剩下的就不会出现任何问题了。

将 screen.css 重命名为 screen.less

@import "screen.less";
#header {     
    .span-24; .last; // Now, Have Fun! :D
         }

I am using Blueprint with LESS and it works beautifully. Only one thing that you need to do is. in your HTML make sure the base div has class="container". if you do just this the rest will work without any glitches.

rename your screen.css to screen.less

@import "screen.less";
#header {     
    .span-24; .last; // Now, Have Fun! :D
         }
静谧幽蓝 2024-10-05 18:08:04

编辑 13/07/2012:Twitter Bootstrap 是我最喜欢的新选择。

编辑:另一个看起来非常不错的: http://semantic.gs/

我还没有测试过它,但是http://centage.peruste.net/ 是一个 LESS.js CSS 框架。

Edit 13/07/2012: Twitter Bootstrap is my new favorite choice.

Edit: another one that looks very nice: http://semantic.gs/

I havn't tested it yet, but http://centage.peruste.net/ is a LESS.js css framework.

樱桃奶球 2024-10-05 18:08:04

我喜欢将 Less 框架与 {less} 结合使用。就是因为它让人迷惑到了极点......

I like using the Less Framework with {less}. Just cause it confuses people to the extreme...

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