将固定布局转换为流体布局 [英] converting fixed layout to fluid layout

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

问题描述

大家好!



我正在尝试将我的固定布局网站转换为流畅的布局。

我想问我是否只能使用一个div来包含所有固定布局的div块?



提前致谢!

Hi guys!

I am trying to convert my fixed layout website to fluid layout.
I would like to ask if I can only use a single div in order to contain all my div blocks with fixed layout?

Thanks in advance!

推荐答案

请参考这个 [ LINK ]和 [ Medeia查询]扩展,用于将固定布局转换为流体布局。
Please refer to this [LINK] and [Medeia Queries] extension for converting fixed layout to fluid layout.


请看我对这个问题的评论。



即使你总是可以在固定布局中包含流体布局元素页面(当然会保持整个设计主要是固定的布局),在流体布局设计中包含固定布局元素的尝试无论如何都会打破布局,以防浏览器窗口的大小小于一些固定元素。因此,尽管有可能,但它可能会破坏这种工作的目的。如果你想让设计变得流畅,你应该尝试将所有的块元素保持在内部HTML的流畅设计中。



请参阅我的过去的答案和一些链接:

网页屏幕分辨率(跨浏览器\跨平台)问题 [ ^ ],

获取屏幕分辨率 [ ^ ]。



-SA
Please see my comment to the question.

Even though you can always contain fluid-layout elements in the fixed-layout page (which of course would keep the whole design predominantly fixed layout), the attempt to contain fixed-layout elements in the fluid-layout design would anyway break the layout in case if the browser window sizes less then some of your fixed elements. So, even though it would be possible, it can defeat the purpose of such work. If you want to make the design fluid, you should try to keep all block elements to fluid design of their inner HTML.

Please see also my past answers with some links:
Webpage screen resolution (Cross Browser\Cross Platform) problem[^],
To Get Screen resolution[^].

—SA


这篇关于将固定布局转换为流体布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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