wrf 嵌套网格作用_在网格系统中使用响应列,嵌套列和偏移列 引导程序

wrf 嵌套网格作用

介绍 (Introduction)

In the previous article, we have learnt what is grid and grid system and how it works? Now, we will learn about how Responsive column, Nesting Columns and Offset Columns works and how to use them? If you have any doubt, feel free to ask in the comment section.

在上一篇文章中,我们了解了什么是网格和网格系统以及它如何工作 ? 现在,我们将了解响应列,嵌套列和偏移列的工作方式以及如何使用它们 ? 如有任何疑问,请随时在评论部分提问。

响应列 (Responsive Columns)

We know that we have four grid classes (xs, sm, md, lg). So, in these Responsive columns, we use one or all four grid for layout, according to the device or viewport size. It’s up to you in how many columns you want to divide Grid individually in your page; on different devices and how many columns group you want on different devices.

我们知道我们有四个网格类( xs , sm , md , lg )。 因此,在这些“响应式”列中,根据设备或视口的大小,我们使用一个或所有四个网格进行布局。 由您决定要在页面中分别划分Grid的几列; 在不同的设备上,以及您希望在不同的设备上有多少列组。

Example:

例:

In the following example, the layout has been divided into two grid class (sm & md) for different device viewport. We are dividing here columns for small devices as .col-sm-4, .col-sm-4, .col-sm-4 and for large device.col-md-4 .col-md-3, .col-md-5.

在以下示例中,针对不同的设备视口,布局已分为两个网格类( sm & md )。 对于小型设备,我们在这里划分列为.col-sm-4 , .col-sm-4 , .col-sm-4和大型设备 .col-md- 4.col -md-3 , .col-md -5 。

<! ---------- Responsive columns ---------->
<h2 style="color:blue;">Responsive Columns</h2><br />
<div class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-3">
<h3 style="background-color:skyblue;text-align:center;">
we use 4 col in small and 3 col in large device in 12 columns.
</h3>
</div>
<div class="col-sm-4 col-md-5">
<h3 style="background-color:yellow;text-align:center;">
we use 4 col in small and 5 col in large device in 12 columns.
</h3>
</div>
<div class="col-sm-4 col-md-4">
<h3 style="background-color:pink;text-align:center;">
we use 4 col in small and 4 col in large device in 12 columns.
</h3>
</div>
</div>
</div>

嵌套列 (Nesting Columns)

It is similar to something we have already used, that is; the nested loop and conditional statement in programming languages (In C, C++ & other). To test your content, you have to add a row and col-*-* class within an existing col-*-* class.

它类似于我们已经使用过的东西,即; 编程语言(在C,C ++和其他语言中)的嵌套循环和条件语句。 要测试你的内容,你必须添加一个ROW和COL - * - - *类现有的山坳内*类- *。

Note: The nested row should include scales up to 12 columns as the device or viewport.

注意:嵌套的行最多应包含12列作为设备或视口的比例。

Example:

例:

In the following example, layout has been divided into two columns .col-sm-8 and .col-sm-4 both are split into two parts, In which first one is split into .col-sm-4 and .col-sm-8 & second is split into .col-sm-6 and .col-sm-6.

在下面的示例中,布局已分为两列。.col-sm-8和.col-sm-4都分为两部分,其中第一个部分分为.col-sm-4和.col-sm -8 &秒分为.col-sm-6和.col-sm-6 。

<!----------- Nesting Columns --------------->
<h2 style="color:blue;">Nesting Columns</h2><br />
<div class="container-fluid">
<div class="row">
<div class="col-sm-8">
<h3 style="background-color:lightgreen;text-align:center;"> 
we use 8 columns in 12 columns.
</h3>
<div class="row">
<div class="col-sm-4">
<h5 style="background-color:Aqua;text-align:center;">4 col</h5>
</div>
<div class="col-sm-8">
<h5 style="background-color:Aqua;text-align:center;">8 col</h5> </div>
</div>
</div>
<div class="col-sm-4">
<h3 style="background-color:lightgrey;text-align:center;">
we use 4 columns in 12 columns.
</h3>
<div class="row">
<div class="col-sm-6">
<h5 style="background-color:Aqua;text-align:center;">6 col</h5>
</div>
<div class="col-sm-6">
<h5 style="background-color:Aqua;text-align:center;">6 col</h5> 
</div>
</div>
</div>
</div>
</div>

Mobile and tablet view for Both Responsive and Nesting columns:

响应式和嵌套式列的移动设备和平板电脑视图:

Mobile tablet layout

Desktop view for Both Responsive and Nesting columns:

响应列和嵌套列的桌面视图:

desktop layout

偏移列 (Offset Columns)

You can also use offset grid columns. It provides a specialized layout. It also has four grid classes. For this, we have to use offset -*-*. These classes are used to increase the left margin of columns where columns can move an only right side and we increase left margin to the columns by using offset -*-* and it ranges from 1-11. Margins are more useful for quick layouts where the variable is the width of the offsets.

您也可以使用偏移网格列。 它提供了专门的布局。 它还具有四个网格类别。 为此,我们必须使用offset -*-* 。 这些类用于增加列的左边距,其中列只能向右移动,我们通过使用偏移量-*-*来增加列的左边距,范围为1-11。 边距对于变量为偏移宽度的快速布局更有用。

Offset columns in Bootstrap

Example:

例:

In the following example, specialized layout is used and divided into two columns (col-md-4 col-sm-4 col-lg-4) and (col-md-4 col-sm-4 col-lg-4). Here, we use offset in both the splitted columns offset-md-2 & offset-md-1 as you can see in the example. Under this spitted two columns we again use offset in contact; we use offset for margin where offset-md-2 & offset-md-0 moves over columns col-md-4 col-sm-4 col-lg-4 offset-md-2 & col-md-4 col-sm-4 col-lg-4 offset-md-1.

在以下示例中,使用专用布局并将其分为两列( col-md-4 col-sm-4 col-lg-4 )和( col-md-4 col-sm-4 col-lg-4 )。 在此示例中,我们在两个拆分列中使用了offset偏移量offset-md-2和offset-md-1 。 在这个分散的两列下,我们再次使用偏移量接触; 我们使用offset作为余量,其中offset-md-2和offset-md-0在列col-md-4 col-sm-4 col-lg-4 offset-md-2和col-md-4 col-sm-上移动4 col-lg-4 offset-md-1 。

<!----------- Offset Columns --------------->
<h2 style="color:blue;">Offset Columns</h2>
<br />
<div class="container-fluid">
<div class="row">
<div class= "col-md-4 col-sm-4 col-lg-4 offset-md-2">
<h1>Contact</h1>
<br>
<div class="row">
<div class="col-sm-8 col-lg-5 offset-md-2">
<form action="" target="_blank">
<p><input type="text" placeholder="Name" class="box" required name="Name"></p>
<p><input	type="text"
placeholder="Comments"	required	name="Comment"	class="box"
style=" height:150px;"></p>
<p><button style="color:black; margin-left:35%" class="btn btn-info" type="submit"><b>SUBMIT</b></button></p>
</form>
</div>
</div>
<div class= "col-md-4 col-sm-4 col-lg-4 offset-md-1">
<h1>Contact</h1>
<br>
<div class="col-md-5 col-lg-5 offset-md-0">
<form action="" target="_blank">
<p><input type="text" placeholder="Name" class="box" required name="Name"></p>
<p><input	type="text"
placeholder="Comments"	required	name="Comment"	class="box"
style=" height:150px;"></p>
<p><button style="color:black; margin-left:35%" class="btn btn-info" type="submit"><b>SUBMIT</b></button></p>
</form>
</div>
</div>

Mobile and tablet view for Offset columns:

偏移列的移动设备和平板电脑视图:

Mobile tablet layout

Desktop view for Offset columns:

偏移列的桌面视图:

desktop layout

Conclusion:

结论:

So, Let’s conclude with what we have learnt here.like-what is Responsive columns, Nesting columns, Offset Columns and how to use them, with examples. I hope now, you gained an insight into how can we use these different amazing classes for creating a responsive page. Stay tuned for the next article. We will dig deeper and discover more about Bootstrap. See you in the next Article! Happy Learning!

因此,让我们以在这里学到的内容作为结束。例如-什么是响应列,嵌套列,偏移列以及如何使用它们,并带有示例。 我希望现在,您了解了我们如何使用这些不同的惊人类来创建响应式页面。 请继续关注下一篇文章。 我们将更深入地探索并发现更多有关Bootstrap的信息。 下篇再见! 学习愉快!

翻译自: https://www.includehelp.com/html/use-of-responsive-nesting-columns-and-offset-columns-in-grid-system-bootstrap.aspx

wrf 嵌套网格作用

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/540455.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

[看书笔记]《深入java虚拟机》——java体系结构(二)

java虚拟机的三种含义&#xff1a; - 抽象的规范 - 一个具体的实现 - 一个运行中的虚拟机实例 ---------------------java虚拟机的生命周期&#xff1a; java虚拟机实例的天职就是负责运行一个java程序。 启动一个java程序&#xff0c;一个虚拟机实例诞生了&#xff1b;程序关闭…

[转载] 【零基础学爬虫】python中的yield详解

参考链接&#xff1a; 什么时候在Python中使用yield而不是return python中的yield功能比较强大&#xff0c;什么意思呢&#xff1f;如果一个函数f内使用了yield关键词&#xff0c;那么该函数就可以这样使用&#xff1a; for item in f(***): **** 也就是包含yield关键词的函…

全新的membership框架Asp.net Identity(1)——.Net membership的历史

在Asp.net上&#xff0c;微软的membershop框架经历了Asp.net membership到Asp.net simple membership&#xff0c;再到现在的Asp.net Identity. 每一次改变&#xff0c;都使得验证框架更加的适应变化和可定制。这篇文章是Asp.net Identity系列的开篇&#xff0c;主要就membersh…

c语言100位整数变量声明_C ++程序动态声明一个整数变量并打印其内存地址

c语言100位整数变量声明Here, we will learn how we can declare an integer variable dynamically and how to print address of declared memory block? 在这里&#xff0c;我们将学习如何动态声明整数变量&#xff0c;以及如何打印声明的内存块的地址&#xff1f; In C pr…

[转载] python 函数返回多个值

参考链接&#xff1a; 在Python中返回多个值 &#xff08;廖雪峰Python教程学习笔记&#xff09; 函数体内部的语句在执行时&#xff0c;一旦执行到return&#xff0c;函数就执行完毕&#xff0c;并将结果返回。 如果没有return语句&#xff0c;函数执行完毕后也会返回结果…

二.编写第一个c#程序(注释,命名空间,类,Main方法,标识符,关键字,输入,输出语句,)...

复习编写一个控制台应用程序&#xff0c;目标是在控制台输出“Hello World” 1.第一步&#xff0c;打开Visual Studio 2012以上版本(我用的是VS 2015)&#xff0c;打开完成后出现以下界面 2.第二步&#xff0c;这时候就要新建一个解决方案了&#xff0c;创建解决方案可以直接点…

[转载] Python中定义函数,循环语句,条件语句

参考链接&#xff1a; Python中的局部函数 由于日常程序流中主要是三种结构&#xff1a;顺序&#xff0c;循环&#xff0c;条件&#xff0c;且往往需要自定义函数再调用&#xff0c; 因此今天想学习一下Python中关于定义函数、循环语句和条件语句的写法。 1.定义函数 区…

node oauth2验证_如何设置和使用护照OAuth Facebook身份验证(第1部分)| Node.js

node oauth2验证In my last articles, we looked at the implementation of the passport-local authentication strategy. We also looked at the various requirements to get started with the login form. 在上一篇文章中&#xff0c;我们介绍了护照本地身份验证策略的实现…

vue2.0 引用qrcode.js实现获取改变二维码的样式

vue代码 <template><div class"qart"><div id"qrcode" ref"qrcode"></div><input type"text" id"getval" value"" placeholder"修改这个值改变二维码"></div> <…

[转载] Python列表排序 list.sort方法和内置函数sorted

参考链接&#xff1a; Python中的函数 Python列表排序 list.sort方法和内置函数sorted 很多时候我们获取到一个列表后,这个列表并不满足我们的需求,我们需要的是一个有特殊顺序的列表. 这时候就可以使用list.sort方法和内置函数sorted,本文就是介绍list.sort方法和sorted内…

Java Thread类最终同步的void join(long time_in_ms)方法,带有示例

线程类最终同步无效连接(long time_in_ms) (Thread Class final synchronized void join(long time_in_ms)) This method is available in package java.lang.Thread.join(long time_in_ms). 软件包java.lang.Thread.join(long time_in_ms)中提供了此方法。 join(long time_in_…

RYU控制器安装`

2019独角兽企业重金招聘Python工程师标准>>> 同样是参考了http://linton.tw/2014/02/11/note-how-to-set-up-ryu-controller-with-gui-component/的内容。 1. 由于Ubuntu中自带有Python&#xff0c;因此直接开始安装pip apt-get install python-pip apt-get i…

[转载] mac开发者,你不得不知道的环境变更设置方法(如Java的环境变更 source命令 )

参考链接&#xff1a; 设置Java环境 Mac是基于Unix的&#xff0c;所有先来几个常识与命令&#xff1a; Unix中双引号单引号反引号(" )的区别 Unix中双引号起到“弱引用”的作用:被引用的字符大部分被按照字符字面的意思解释执行&#xff0c;除了了$,\,字符除外。 [因…

人形机器人正在美国史密森尼博物馆中担任导游的工作

Te article has been removed, please visit IncludeHelps home page for more articles 该文章已被删除&#xff0c;请访问IncludeHelp的主页以获取更多文章翻译自: https://www.includehelp.com/News/a-humanoid-robot-is-doing-the-job-of-a-guide-in-the-smithsonian-museu…

normalizr API

APInormalizedenormalizeschemaArrayEntityObjectUnionValuesnormalize(data, schema)Normalizes input data per the schema definition provided. 根据提供的schema定义规范化输入数据。data: required Input JSON (or plain JS object) data that needs normalization.schem…

[转载] 【Java】基础06:HelloWorld入门程序

参考链接&#xff1a; 从Hello World示例开始Java编程 HelloWorld它的中文意思是&#xff1a;“你好&#xff0c;世界”。 仿佛代表着计算机对世界说出来的第一句话&#xff0c;因为它简洁实用&#xff0c;所以被作为入门程序广泛使用。 Java程序开发三步骤&#xff1a;编…

[转载] Java中的命名参数

参考链接&#xff1a; Java命名约定 创建具有许多参数的方法是一个主要的缺点。 每当需要创建这样的方法时&#xff0c;就在空气中闻一闻&#xff1a;这是代码的味道。 强化单元测试&#xff0c;然后进行重构。 没有借口&#xff0c;没有屁股。 重构&#xff01; 使用构建器模…

[转载] JVM(一):JVM体系结构详解

参考链接&#xff1a; JVM如何工作–JVM体系结构 JVM简介 JVM是Java程序得以运行的平台&#xff0c;也是Java程序可以跨平台的底层支撑&#xff0c;从整体上来看&#xff0c;JVM的主要功能可以分为加载和执行两大块。其中类加载器负责.class文件的寻址与加载&#xff0…

数据库连接池的设计思路及java实现

2019独角兽企业重金招聘Python工程师标准>>> connectionPool.DBConnectionManager [java] view plain copy package connectionPool; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; i…

[转载] java虚拟机 jvm 出入java栈 栈空间内存分配

参考链接&#xff1a; Java虚拟机(JVM)堆栈区域 java栈空间是一块线程私有的内存空间&#xff0c;java堆和程序数据密切相关&#xff0c;那么java栈就是和线程执行密切相关。线程最基本的执行行为就是函数的调用。每次函数调用其实是通过java栈传递数据的。 数据结构中的栈的…