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!