960:帮助不固定大小的列
我想要 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,你必须编写自己的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.