并排使用3个DIV,其中中心DIV为“内容" DIV [英] Using 3 DIVs side by side, with the center DIV being the 'content' DIV

查看:77
本文介绍了并排使用3个DIV,其中中心DIV为“内容" DIV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

想知道是否有人可以在这里为我提供帮助...我目前正在一个网站上,该网站的主要内容必须集中在浏览器中,因此在不同的屏幕分辨率下看起来都很好.

起初,我的理论是使用表格来构造布局,但我找不到在表格单元格中将图像作为背景的方法,因此我采用了DIV路线.

我猜我需要:
一个容器" DIV-(用于容纳相应的DIV)
容器"内部的3个DIV-(这些将并排,第二个是主")

任何答案将不胜感激,感谢您的宝贵时间,
Tom.

Hi everyone,

Wondering if anyone can help me here... I''m currently working on a website, of which would need to have the main content centered in the browser, so it will look fine in different screen resolutions.

At first my theory was to use tables to structure the layout, but I couldn''t find a way to have an image as a background in a table cell, so I took the DIV route.

I''m guessing I would need:
A ''container'' DIV - (to hold the corresponding DIV''s)
3x DIV''s inside the ''container'' - (these would be side by side, the 2nd being ''main'')

Any answers would be much appreciated, thanks for your time,
Tom.

推荐答案

看看这个:
http://stackoverflow.com/questions/6208214/placing-3-divs-side-并排 [ ^ ]

最好的问候
埃斯彭·哈林(Espen Harlinn)
Have a look at this:
http://stackoverflow.com/questions/6208214/placing-3-divs-side-by-side[^]

Best regards
Espen Harlinn


前一段时间,我发现了一种很好的方法来构成Google查询,以在这个非常受欢迎的主题中找到足够的样本.

请执行以下操作: http://bit.ly/x3AW1M [ ^ ].



另外,在需要JavaScript的地方设置可调整大小的列可能非常有用.我建议使用jQuery.因此,此搜索可能会更有效率:

http://bit.ly/x62NXg [ ^ ].

祝你好运,
—SA
A while ago I found a good way to form a Google query to find enough samples in this very popular topic.

Please do this: http://bit.ly/x3AW1M[^].



Also, it might be very useful to have resizable columns where you might need JavaScript. I would recommend to use jQuery. So, this search could be more productive:

http://bit.ly/x62NXg[^].

Good luck,
—SA


这篇关于并排使用3个DIV,其中中心DIV为“内容" DIV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆