简体   繁体   English

CSS三列布局流畅

[英]CSS three column layout fluidity

I'm currently working on a CSS three column layout ( http://jsfiddle.net/methuselah/rCtGd/ ) and I wanted to ask several questions: 我目前正在研究CSS三列布局( http://jsfiddle.net/methuselah/rCtGd/ ),我想问几个问题:

1) For some strange reason there seems to be a 10px gap between the header, content-1, content 2-1, content-2-2 . 1)由于一些奇怪的原因,标题, 内容-1,内容2-1,内容-2-2之间似乎存在10px的差距。 This cannot be seen in jsfiddle but if you load up the code in any browser it is noticeable. 这在jsfiddle中是看不到的,但是如果你在任何浏览器中加载代码它是显而易见的。 How do I get rid of it? 我怎么摆脱它?

2) I would like to figure out a way of clearly defining a fluid column height. 2)我想找出一种清晰定义流体柱高度的方法。 Is this possible? 这可能吗? Ideally I would like all the divs header, content-1, content 2-1, content-2-2, footer to stretch in order to accommodate the page. 理想情况下,我希望所有divs 标题,内容-1,内容2-1,内容-2-2,页脚拉伸以适应页面。

Thanks in advance. 提前致谢。

Answers for your valid questions! 您有效问题的答案! :P :P

  1. 10px gap is not found on the jsFiddle because, they use CSS Reset . 在jsFiddle上找不到10px的间隙,因为它们使用CSS Reset The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. 重置样式表的目标是减少浏览器在默认行高,边距和标题字体大小等方面的不一致性。
  2. For getting a good idea about CSS Fluid Layouts , please refer the links below: 有关CSS流体布局的好主意,请参考以下链接:

Do you have any clarifications still? 你还有任何澄清吗? Let me know in the comments! 请在评论中告诉我! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM