简体   繁体   English

固定版,流体版,弹性版与响应版之间有什么区别

[英]What is the differenence between Fixed vs. Fluid vs. Elastic Layout vs Responsive layouts

Can you please detail me the difference between 您能详细说明一下

Fixed vs. Fluid vs. Elastic Layout vs Responsive layouts 固定,流体,弹性布局,响应式布局

I'll try to paraphrase the book "Responsive Webdesign - A. Ertel, K. Laborenz - Galileo Computing" 我将尝试改写“响应式网页设计-A. Ertel,K。Laborenz-Galileo Computing”一书

Fixed Layout 固定版面

A layout whose dimensions are expressed in pixels and therefore incapable of adapting to different screen sizes or resolutions. 一种布局,其尺寸以像素表示,因此无法适应不同的屏幕尺寸或分辨率。 If the screen is too small, a scroll bar will be shown. 如果屏幕太小,将显示滚动条。 在此处输入图片说明


Fluid & Elastic Layout 流体和弹性布局

A fluid layout is defined in percent of the Viewports. 流体布局以视口的百分比定义。 When the window size changes, the dimensions of the layout change accordingly. 当窗口大小更改时,布局的尺寸也会相应更改。 Texts and pictures keep their size. 文字和图片保持其大小。

A mixform between the fixed and the fluid layout is the elastic layout. 固定布局和流体布局之间的混合形式是弹性布局。 The element-widths are expressed in em , which depends on the font size. 元素宽度以em表示,这取决于字体大小。 Therefore the layout does not change when the Window size changes, but rather when the font size changes. 因此,当窗口大小更改时,布局不会更改,而在字体大小更改时,布局不会更改。 In priciple it's the behaviour that most browsers make available through Page Zoom (CTRL+Mousewheel). 原则上,这是大多数浏览器通过页面缩放 (CTRL +鼠标滚轮)提供的行为。

在此处输入图片说明


Adaptive Layout 自适应布局

The adaptive layout is in principle a fixed version which exists in several versions. 自适应布局原则上是一个固定版本,存在多个版本。 Depending on the available screen size it "jumps" through these versions. 根据可用的屏幕尺寸,它会在这些版本中“跳转”。 Between the breakpoint it behaves as a fixed layout. 在断点之间,它表现为固定布局。

在此处输入图片说明

Responsive Layout 响应式布局

The responsive Layout combines the properties of the fluid and the adaptive layout. 响应式布局结合了流体和自适应布局的属性。 It changes heavily upon "breakpoints" and additionally it also stretches like a fluid layout between these breakpoints. 它在“断点”上发生很大变化,此外,它们在这些断点之间也像流体布局一样伸展。 It also allows for the content to scale, ie pictures adapt to the available space. 它还允许内容缩放,即图片适应可用空间。

在此处输入图片说明

Fluid, Elastic and Responsive Layouts are all same... 流畅,弹性和响应式布局都是相同的...

Only Fixed Layout is a layout in which you fix the width of the page to a given size eg in pixels.... 只有固定版面是您将页面的宽度固定为给定尺寸(例如,以像素为单位)的版面。

Fluid Layout was width 100% and its elements arrange via the screen resolutions... Fluid Layout的宽度为100%,其元素通过屏幕分辨率进行排列...

Responsive means webpage elements arrange via the screen resolutions... 自适应意味着网页元素通过屏幕分辨率进行排列...

Check out this sample thats fluid:- 检查这个样本多数民众赞成在流体:-

  1. Fluid Sample 流体样本
  2. Responsive 反应灵敏

Reference:- Twitter Bootstrap 参考: -Twitter Bootstrap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM