DIV布局和固定宽度! [英] DIV Layouts and fixed widths !

查看:517
本文介绍了DIV布局和固定宽度!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我最近解决了我的网页上div布局的问题,结果是我让三个div并排占据了整个浏览器窗口,中间的div是内容" div,左边的&正确的div无关紧要.

我要在这里实现的目标是使中心div(内容)在页面上具有固定的宽度,因为此刻它会以不同的分辨率更改大小,从而破坏了其中内容的布局. >
左&正确的div,我不在乎,它们只是在那儿,只是用于将中心div固定在适当的位置...

有没有一种方法可以强迫左&正确的div可以在不同分辨率下更改大小,并且中心保持固定?

任何回复将不胜感激,
谢谢,汤姆.

Hi everyone,

I recently solved my problem of div layouts on my webpage, the result was I had three divs side by side taking the whole browser window, with the center div being the ''content'' div, and the left & right divs being irrelevant.

What I''m trying to achieve here, is having the center div (content), being a fixed width on the page, because at the moment it changes size on different resolutions, ruining the layout of the content inside it.

The left & right divs I do not care about, they''re purely there just to hold the center div in place...

Is there a way of forcing the left & right divs to change size on different resolutions, and the center staying fixed?

Any replies would be much appreciated,
Thanks, Tom.

推荐答案

如果我了解您想要的内容,那么 ^ ]帖子将为您做到(向下滚动并包括一些代码)

我在为教小学生的CSS制定教学计划时访问了(很多)地方之一!
If I understand what you want then this[^] post will do it for you (scroll down a bit and some code is included)

One of the (many) places I visited when doing lesson plans for teaching CSS to schoolkids!


这篇关于DIV布局和固定宽度!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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