960:帮助不固定大小的列

发布于 2024-08-16 03:43:19 字数 288 浏览 2 评论 0原文

我想要 5 个 div(2 行)。

标头 左栏 - 内容 - 右栏 - 广告列(google adsense),

但我希望内容可以调整大小。它会根据网络浏览器的大小进行调整,但不会达到一定的宽度,例如600 px,而左栏、右栏和广告栏是固定的。标题也不应该是固定的。

就像 wn (尝试调整网络浏览器大小)一样

,您如何使用 960 实现此目的?或者我必须编写自己的CSS 代码吗?

i want to have 5 divs (2 rows).

header
leftbar - content - rightbar - ad columns ( google adsense)

but i want the content to be resizable. it will adjust to the webbrowsers size but not undergo a certain width eg 600 px, while leftbar, rightbar and ad column are fixed. the header should also not be fixed.

just like wn (try to resize the webbrowser)

how do you accomplish this with 960? or do i have to code my own css?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终陌 2024-08-23 03:43:19

是的,你必须编写自己的CSS。使用最小宽度和最大宽度代替宽度。
您可能希望将标题设置为 max-width:960px 并将 min-width 设置为内容+固定栏的最小宽度。您的内容将为 min-width:600px。

Yes, you have to write your own css. Use min-width and max-width instead of width.
You probably want to set your header to max-width:960px and min-width to min width of content+fixed bars. And your content will be min-width:600px.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文