如何创建一个包围浏览器视图区域的界面?
我正在为我的服务设计一个界面,它需要包裹整个视图区域。它更像是一个应用程序,而不是一个普通的网页。我想了解 css 3.0 等现代技术的最佳实践。我不想把这个写在闪存中。
抱歉,该照片来自 mspaint,但速度又快又脏。
目标是使顶栏与左栏以相同的方式保持在正常位置。中间部分(应用程序区域)需要用可能超出应用程序区域的覆盖元素填充其余部分。
我知道我可以进行 javascript 计算,但我希望有更好的方法。
I'm designing an interface for a service of mine and it needs to wrap the whole view area. It's more of an application then a normal web-page. I want to know best practices for modern technology like css 3.0. I don't want to have to write this in flash.
Sorry that the photo is from mspaint, but it was quick and dirty.
The goal is to have the topbar rest in normal position with the left bar the same way. the middle section (the app area) needs to fill the rest with an overlay element that may surpass the application area.
I know I can do javascript calculations, but I was hoping for a better way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该层是与固定宽度要求混合的流体/液体宽度。您可以使用普通 CSS 轻松做到这一点。您可以通过在 CSS 中指定固定位置来将框放在右下角。
检查液体示例示例。更多信息此处
编辑

将容器元素的高度设置为 100%。这仍然很粗糙,但可以让你开始
CSS 文件
That layour is a fluid/liquid width mixed with fixed width requirement. You can do that easily with normal CSS. You can do the box in low right hand corner by specifying fixed position in CSS.
Check this for a liquid example example. More here
Edit

Set the container element's height to 100%. This is still rough but will get you started
CSS file