fixed-fluid-fixed layout

馋奶兔 提交于 2019-12-12 04:55:36

问题


I'm trying to create a three column layout in CSS only with fixed left and right columns and a fluid central column. I have searched online but nothing has worked when I implement it. I don't know whether this is particularly relevant but my central column is (or contains, I've tried both) an iframe. This seems to be contributing to the complication.


回答1:


Have you tried using an 960 grid ?

  • http://960.gs/

Otherwise there are many examples for using fixed and fluid grid layouts in the web:

  • http://matthewjamestaylor.com/blog/perfect-3-column.htm

  • http://www.dynamicdrive.com/style/layouts/item/css-liquid-layout-31-fixed-fluid-fixed/ This is the one you are looking for.

Btw: Please provide some of your code, or do a jsfiddle about it !



来源:https://stackoverflow.com/questions/9259602/fixed-fluid-fixed-layout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!