创造与控制 Grid 960 中的父 div 嵌套
这是我试图实现的布局http://jsfiddle.net/qeDs3/44/
我使用 Grid_960 模板在 Indesign 上模拟了它:http://designobvio.us/dov2/Homepage1.pdf
以下是我无法使用 http://designobvio.us/dov2/Homepage1Encapulate.pdf
通过尝试错误,grid 960似乎强制你使用该类container_12
与 .grid_12
结合作为父标记。
这是另一个完整的示例:http://designobvio.us/dov2/index.html 如何让 gChild 成为父级
下面是配对示例: http:// designobvio.us/dov2/index2.html 我试图让标题标签成为其内容的父标签。
我的布局不支持grid960吗?我完全错过了一些愚蠢的事情吗?它需要破解吗?如果您需要任何澄清,我会在这里并尽快回复。 谢谢
更新 我尝试这样做的原因是为了获得对这些父 div 的控制权,以便于媒体查询。
Here's the layout I'm trying to achieve http://jsfiddle.net/qeDs3/44/
I mocked it up on Indesign using Grid_960 templates: http://designobvio.us/dov2/Homepage1.pdf
Here are the divs I cannot make parents out of http://designobvio.us/dov2/Homepage1Encapulate.pdf
Through trial an error, grid 960 seems forces you to use the class container_12
in conjunction to .grid_12
as the parent tag.
Here's another full example: http://designobvio.us/dov2/index.html
How can i get gChild to be the parent
Heres paired down example: http://designobvio.us/dov2/index2.html
I'm trying to get the header tag to be the parent of its contents.
Does my layout not cooperate with grid960? Am I totally missing something stupid? Does it require a hack? If you need any clarification of anything I'll be right here and will response ASAP.
Thanks
Update The reason I'm trying to do this is so that I may gain control of those parent divs for ease of media query.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过广泛的研究(笑)我终于解决了这个问题。
Grid 960 有 2 个额外的类,它们只是删除左右边距,名为 alpha 和 alpha 。欧米茄。我从来没有费心去学习这些的目的/理论,因为我很蠢。这些类的目的正是我所好奇的,“在网格中嵌套网格”;从而允许我清除浮动并控制不遵守 12 列标准的父 div。
我希望有一天这个问题/答案可以帮助其他拒绝阅读文档的傻瓜。
After EXTENSIVE research (lol) I've finally solved this problem.
Grid 960 has 2 extra classes which simply remove margins left and right named alpha & omega. I've never bothered learning the purpose/theory of these because I was dumb. The purpose of these classes are exactly what I was curious to, "nesting grids within grids;" thus allowing me to clear the float and control the parent div's that dont abide by the 12 column standard.
I hope someday this question/answer helps some other fool that refuses to read documentation.