为什么 Blueprint-Css 将布局的最大网格宽度设置为 950px?
如果您将容器类用于带有 blueprint-css 的布局,则最终的最大宽度为 950px。 我有一个布局需要超过这个,所以我想知道为什么蓝图使用这个默认值?
<div class="container">
If you use the container class for a layout with blueprint-css, you end up with a maximum width of 950px. I have a layout that needs to exceed this so I'm wondering why Blueprint uses this default?
<div class="container">
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
蓝图是非常可定制的。 您可以使用框架中包含的压缩引擎(Ruby 脚本)来生成您想要的任何列数、宽度和间距。 它实际上非常容易使用并且非常强大。
此演练提供了许多有关自定义的有用信息。
对于我们的网站,我们使用了一个包含 2 个不同布局项目的设置文件 - 1 个用于基于 790 的分辨率,另一个用于旧的备用 950。我们能够根据压缩引擎程序的输出轻松创建皮肤。
另外,一个鲜为人知的秘密是,您可以使用这些文件来解决所谓的“语义 css”问题,如果您还没有听说过,我相信您会听说过。
Blueprint is very customizable. You can use the compression engine (ruby scripts) that are included with the framework to generate whatever column counts, widths, and gutters you want. It's actually pretty easy to use and pretty powerful.
This walkthough provides a lot of useful info on customization.
For our site, we utilized a settings file with 2 different layout projects - 1 for a 790 based resolution, and one for the old standby 950. We were able to easily create skins based off the output of the compression engine program.
Also, a little known secret is that you can use these filese to solve the so called "semantic css" problem that I'm sure you will hear about if you haven't already.
Blueprint 选择此宽度是因为对于具有当今常见显示器分辨率的固定宽度网站来说,略低于 1,000 像素是当前可接受的“安全”宽度。 800x600 很少见,可以被忽略,但 1024x800 是一个足够大的用户群,可以容纳。
它是 950 而不是 1024,因为浏览器滚动条等占用了一点屏幕空间。
Blueprint chooses this because a little under 1,000 pixels is the currently accepted 'safe' width for a fixed-width website with today's common monitor resolutions. 800x600 is rare enough to be ignored, but 1024x800 is a big enough segment of the userbase to be accommodated.
It's 950 instead of 1024 because browser scrollbars etc. take away a little screen real estate.
Blueprint 旨在简化 950px 布局的创建。 如果您想要其他尺寸,则必须使用其他尺寸或自行卷制。
Blueprint was designed to simplify the creation of 950px layouts. If you want another size you'll have to use something else or roll your own.