Elementor Tutorial

The most comprehensive Elementor Container usage tutorial in history (2024)

Using Elementor’s latest Container element has several significant advantages over the Section element in earlier versions.。The Container element was designed by the Elementor team to improve flexibility.、performance and design capabilities,These improvements mean more powerful and flexible layout options,An important advance for designers and developers。However, it is still difficult for many novices to get started.。If you have learned some CSS, you may understand,In fact, it is flex layout。

one、Benefits of Containers

  1. More flexible layout control:
    • Container elements provide more layout options,Such as Flexbox and Grid,Allows more complex and granular layout control。
    • It can manage multiple child elements inside a container,not just columns。
  2. Improved responsive design:
    • Container elements allow finer adjustments to different screen sizes,Provides better responsive design control。
    • It supports more complex responsive layouts,For example, showing or hiding specific elements on different devices。
  3. Reduce the number of DOM elements:
    • Compared to Section,Container elements can reduce the generated DOM (Document Object Model) number of elements,This helps improve page loading speed and performance。
    • Fewer DOM elements also means cleaner code and better SEO optimization。
  4. Better margin and padding control:
    • Containers provide more flexible margin and padding settings,Allows finer spatial control over child elements。
    • This helps create more precise designs,Especially for complex layout structures。
  5. More design options:
    • Container elements offer a wider range of design options,as background、frame、Shape Divider etc.,Make designs more creative and diverse。

two、How to enable Elementor’s Container function

From the settings,Elementor and Elementor Pro latest version defaultGrid Container andFlexbox Container is on,If it is an old version, you can enable it yourself。

Enable the Elementor Container feature in the Elementor settings in the WordPress backend

史上最全Elementor Container使用教程(2024)

Find the Flexbox container and select Enable it

史上最全Elementor Container使用教程(2024)

After enabling, slide to the bottom and click Save

史上最全Elementor Container使用教程(2024)

After the same operation, find the Grid container, select it, enable it and save it.

史上最全Elementor Container使用教程(2024)

After saving, return to the Elementor editing page again.,You can see that the original internal sections have disappeared,There are two more components。

Different from rows in columns,Each new row,Will choose the frame first,There are two options: Flexbox Container and Grid Container,Will explain in detail later。

史上最全Elementor Container使用教程(2024)

three、Basic settings of Elementor Container

3.1 Container layout settings

1) Container general settings

Select the Container with the mouse,Switch to the Layout tab in the left window,Container can be configured with layout settings。

史上最全Elementor Container使用教程(2024)

Container Layout is used to switch the layout mode of Container,There are two options: Flexbox and Grid,The default option is Flexbox。

史上最全Elementor Container使用教程(2024)

Content Width is used to set the width of Container,You can use Boxed or Full Width。The default setting is Boxed which means the width of the content is based on a fixed width,You can set this width in the width below,The default value is 1140px,You can set a global content width in the Elementor Site setting。

史上最全Elementor Container使用教程(2024)

The default width of Boxed is the content width you set in the global Site Settings (the default global content width of Elementor is 1140px)。You can change the width via the slider。

Full Width setting represents full amount,Its default width will be based on the wrapped Container.,If it is the top-level outermost Container in the canvas,The width defaults to fill the browser window.。You can adjust the width via the slider。

MIn Height is used to set the minimum height of Container.,When there is no content or less content in the Container,then display with minimum height,If there is a lot of content in the Container,The default is to display the height of the matching content.。You can modify the height via the slider or by entering a numerical value.。

史上最全Elementor Container使用教程(2024)

Container Layout can switch Flexbox to Grid,There are differences in the Item settings of Flexbox and Grid。

史上最全Elementor Container使用教程(2024)

The Item setting items of Flexbox and Grid are different,Here I will introduce it under two headings:

2) Flexbox Item settings

When you set Container Layout to Flexbox,You can see that the Item settings are as follows:

史上最全Elementor Container使用教程(2024)

Direction represents the display direction,There are 4 options,Follow the arrows to indicate where the wind direction is:from left to right,from top to bottom,right to left,from bottom to top。

Use Direction to change the direction and order in which you arrange elements in a Container.,Give an example:

I put 2 elements title and text in a Container,By default, if the Container's Item Direction is set to left to right,Then the display will be based on 1,After switching different Directions, there will be different display methods and sequences.,You can test it yourself

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

The setting of Justify Content is in the direction perpendicular to the Direction direction.,Set the effect of the elements inside the Container。

If Direction is set to horizontal left to right or right to left,Then the setting of Justify Content is based on the vertical alignment method.。

史上最全Elementor Container使用教程(2024)

If Direction is set to top to bottom or bottom to top,Then the setting of Justify Content is based on the horizontal alignment method.。

史上最全Elementor Container使用教程(2024)

Simply put, Justify Content is based on the alignment setting of the internal elements of the Container in the vertical direction of the Direction.。

Justify Content has five setting options:

  • Start:Arrange the elements inside the Container from the very beginning of the Container layout direction.
  • Center:Center the elements inside the Container in the vertical direction based on the Container layout direction.
  • End:Arrange the elements inside the Container starting from where the end of the Container layout direction ends.
  • Space Between:The first element is placed at the starting point,The last element is placed at the end point and the elements inside each Container are evenly arranged.
  • Space Around:Allocate equal space to each element,Then arrange it in Container
  • Space Evenly:The distance between each element is the same,Then arrange it in Container

What is the specific effect of each option setting?,It is recommended to set it up on the website yourself and observe,I won’t give examples here.。

Align Items is the setting of the internal elements of the Container that are consistent with the Direction.。

Align Items contains four options:

  • Start:Arrange the elements inside the Container based on the beginning of the Direction layout direction
  • Center:Arrange the elements inside the Container in the center based on the Direction layout direction
  • End:Arrange elements inside the Container based on where the Direction layout direction ends.
  • Stretch:Stretch the elements inside the layout Container based on any of the above three methods (‘auto’-sized elements will be stretched to fit the size of the container,If a fixed size is set, it will not stretch automatically.。)
史上最全Elementor Container使用教程(2024)

Compare the picture above and the picture below,Observe the background color of the title and text to see the layout effect of Stretch.。

史上最全Elementor Container使用教程(2024)

Gap between elements sets the spacing between elements inside the Container。

The default is 20px,You can modify it according to your own needs。

史上最全Elementor Container使用教程(2024)

Wrap is used to set whether the elements inside the Container are wrapped.。

The default is No Wrap.,If your Container is arranged from left to right,You want to add 6 elements to the Container,These elements are arranged in a row。

史上最全Elementor Container使用教程(2024)

如果你希望Flexbox Containner中的元素换行则设为Wrap即可

史上最全Elementor Container使用教程(2024)

3)Grid的Item设置

当你将Containner Layout设为grid的时候,You can see that the Item settings are as follows:

史上最全Elementor Container使用教程(2024)

在Item设置的第一个项目是Grid Outline也就是轮廓

Grid Outline是用来控制显示或者隐藏网格线的注意这个线也是一个虚线只在画布中显示用于展示Grid的网格布局排列实际上是不存在的

史上最全Elementor Container使用教程(2024)

如果你关闭Grid Outline则不显示网格线但是Grid Containner的布局还是按照你设置的进行布局所以你可以理解为它是一个辅助线

史上最全Elementor Container使用教程(2024)

然后是Columns和Rows行和列数设置

史上最全Elementor Container使用教程(2024)

设置Grid为3列2行

史上最全Elementor Container使用教程(2024)

Gaps用于设置Items之前的间距你可以取消同步单独设置行的间距和列的间距

by default,Grid Containner中的Items之间会有一个默认的间距大概10px如果你想Items之间的间距为0像素则需要手动设置Gaps为0.

史上最全Elementor Container使用教程(2024)

Auto Flow用于控制Grid Items自动流动的方向默认情况下是Row自动流动也就是说行数根据Items的数量会自动增加

史上最全Elementor Container使用教程(2024)

比如你设置Grid的Items布局为3列2行并默认Row自动流动的话默认是6个元素排列但是如果你添加的元素超过6个那么Grid就是自动添加一个行就继续排列

如果设置Auto Flow为Column的时候那么列就是会根据Items数量自动增加

Justify Items和Align Items用于设置Grid Containner内部的Items的对其方式的每个Items的对其的参照为Grid Outline的虚线

史上最全Elementor Container使用教程(2024)

4)Additional Options其他选项设置

在Containner的Additional Options中有2个选项

Overflow溢出设置

控制Containner的内容是否不适合浏览器器窗口溢出的内容是否应该隐藏或可见从而导致水平滚动

Overflow有三个选项

  • Default 允许容器外的项目溢出
  • Hidden隐藏溢出的项目无法访问溢出的项目
  • Auto 在内容溢出时创建滚动条以保持项目可访问此设置允许在移动视图中滑动内容

Hidden状态下如果内容溢出了是看不到溢出的内容的

Default和Auto状态下可以通过左右滑动看到溢出的内容

史上最全Elementor Container使用教程(2024)

3.2 Containner的风格设置

切换到Containner的Style选项卡可以设置Containner的风格

史上最全Elementor Container使用教程(2024)

1)Background(background)

你可以通过背景为Containner设置背景颜色比如下图我设置Containner的背景颜色为红色

史上最全Elementor Container使用教程(2024)
  • 当然你还可以为Containner的设置背景图
  • 设置Containner背景为渐变
  • 为Containner设置一个视频背景
  • 为Containner设置一个轮播相册背景

这些不同的背景设置模式下还有一些细节的设置项目我就不展开说了建议自己设置之后看效果

另外你还可以切换到Hover属性标签下面设置Containner背景在鼠标移动上去的效果比如设置Hover的背景颜色为黑色或者设置一张Hover背景图片(鼠标移动到Containner之后将会切换到Hover设置的背景图片)

2)Background Overlay(背景覆盖)

背景覆盖可以实现给你设置的背景叠加一层颜色或者图片蒙板你可以设置颜色或者图片的透明度来匹配你想要实现的效果

比如我给Containner添加了黑色覆盖透明度为20%

在Hover标签中设置覆盖颜色为黑色透明度为60%那么用户将鼠标移动到Containner时背景会变暗这样Containner中浅色的文字内容将会更加凸显

史上最全Elementor Container使用教程(2024)

3)Border(边框设置)

Border用于设置Containner的边框和投影效果

一般情况下我不会设置最外面嵌套的Containner的边框和投影

在是当Containner嵌套在内部的时候通过边框和投影的设置可以凸显出Containner的内容如果是并列排列的局部可以让布局看上去更加整齐

比如下图我给内部的三个Containner都设置了投影和圆角让他们看起整齐并且凸显内部的内容

史上最全Elementor Container使用教程(2024)

4)Shape Divider(形状分割线)

形状分割线可以用来做一些Containner之间的分割效果这是UAE插件提供的功能本站读者可以免费领取一个终身授权通过页脚二维码联系即可

你可以通过切换Top和Bottom来选择设置Containner顶部还是底部的分割形状在Type中你可以选择一个你喜欢的形状(只能选择提供的)

比如我在下图的Containner顶部设置了一个山峦的形状分割当然它还有针对形状的宽度高度等设置这里就不细说了自己亲自尝试这些设置选项

史上最全Elementor Container使用教程(2024)

3.3 Containner的高级设置

在高级设置中你可以设置当前元素的布局,Movement effect,转换响应式属性以及自定义CSS等等内容在Elementor中所有元素都有高级设置元素不同设置项目会有所不同

下面的内容可以作为你学习其他元素的高级设置项目的参考

1)Layout(布局)

这里是布局是针对Containner元素本身的布局和前面的布局有所不同前面的提到的布局是针对Containner内部的元素的布局设置

Margin用于设置元素和外部元素之间的距离

Padding用于设置元素和内部元素的间距

Align Self用于设置元素基于自身的对齐

Order:用于设置元素自身在同级元素中的排列顺序可以通过自定义设置元素排列在第几的位置排列顺序从0开始

下图中我将内部的2个Containner一个设为0一个设为2他们就会排列在相应的位置而1的位置会空着

Size:设置元素本身的伸展(Grow)和收缩(Shrink)效果伸展设置即元素撑满布局收缩设置即元素收缩到内容的宽度或高度

Position设置元素的位置有三个选项

  • Default 默认(根据容器布局和元素设置自然排列)
  • Absolute 绝对(将元素设置在浏览器中的一个固定位置不会跟随页面滑动而滑动会固定在浏览器窗口中的某个位置)
  • Fixed固定的(将元素设置在页面中的一个固定位置元素可以跟随页面滑动而滑动)

以上三条在我在制作页面时经常会用到理解和掌握之后对制作丰富的页面内容布局非常有帮助

Z-index用于设置元素的在页面中处于显示层级数值越大越在最上层数值越小越在最底层底层的元素可以被上层的元素覆盖

CSS Classes用于设置元素的自定义CSS类设置自定义类之后你可以通过程序代码控制这个元素

2)Motion Effects(运动效果)

Scrolling Effects(滚动效果)设置元素滚动特效它包括垂直滚动、horizontal scroll、透明度模糊、rotate、规模等内容还可以设置在哪些终端生效以及这些效果是基于整个页面还是基于当前窗口的具体的参数设置你可以自己设置之后看效果然后理解

史上最全Elementor Container使用教程(2024)

Mouse Effects(鼠标效果)用于设置鼠标移动到元素的动态效果它包含鼠标轨迹和3D倾斜2种效果

史上最全Elementor Container使用教程(2024)

Sticky(粘性固定)用于设置元素粘性固定可以黏在顶部也可以设置黏在底部同时可以设置它在哪些终端有效

其中offset用于设置元素按照多少像素向下或向上移动(如果你设置为向下滚动时固定并不希望它遮挡你的固定页眉时可以设置其像素为一个大于页眉高度的像素)Effect Offset用设置在粘性效果开始之前用户必须滚动的像素数(通常设为0或者1即代表一旦向下或向上滚动即发生粘性效果)

下图中我设置该元素黏在顶部Offset设为120像素这样它黏在页眉的下方不会覆盖住页眉

史上最全Elementor Container使用教程(2024)

如果你希望元素在一个固定的内容区间粘性那么开启Stay in Colum代表这个元素只会在它的父级Containner内部有粘性效果一旦页面滑动离开该Containner则粘性效果不在生效

史上最全Elementor Container使用教程(2024)

Sticky功能还可以帮助你实现固定页眉和粘性侧边栏的效果

Entrance Animation(进入动画)用于设置改元素进入视觉范围的动画效果默认是不设置的如果你需要设置点击开下拉选择你要的进入动画效果即可

史上最全Elementor Container使用教程(2024)

4)Transform(转换)

Notice:避免在粘性Containner上应用转换属性这样做可能会导致意想不到的结果

转换属性可以设置Containner的旋转倾斜翻转等效果通过对应选项的设置你可以在编辑窗口直观的看到Containner的变化

你可以通过Normal和Hover来设置默认或者鼠标滑过的转换效果只需要切换对应标签进行设置即可

史上最全Elementor Container使用教程(2024)

5)Responsive(响应式能见度)

Responsive 设置在不同终端的可见性默认情况下Containner元素在任何终端都是可见的你可以通过开启隐藏在某一个终端来实现当前Containner元素在对应终端对用户不可见

我最常用的就是在制作页眉时通过2个Containner来制作2个不同的页眉然后通过Responsive设置让其中一个Containner在移动端影藏另外一个在PC段隐藏这样就能实现PC端和移动端不同的Header效果

Four、实操Container结构布局和用法

FlexBox 和Grid是两种布局模式FlexBox适合高度自由的布局方式Grid则是按照网格进行布局不同的布局方式适用不同的场景你可以根据自己的需求选择对应的布局方式

4.1 Flexbox Containner

FlexBox Containner是一个弹性的布局方式可以为你的网站提供一种非常自由的布局的方式Flexbox 像积木一样拼接组成了一整个网站把一个网站页面一行一行来切分每行几乎都可以使用 Flebox 的结构做出来非常实用

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

在Flex布局中对于一个容器而言只要往它内部拖入元素他就会默认垂直的排列方式也就是像下图这样组件会自动垂直的向下堆叠也就是默认你每拖入一个组件这个组件的宽度就默认占满当前容器的100%宽度了

4.1.1 Flexbox 的功能

这里有现成的左右布局(现成布局实操实例1选不到布局实操实例 2)还有上下两行的布局先以第一个为例子来说下基础功能

史上最全Elementor Container使用教程(2024)

选择了方向向下的 Flexbox添加的所有组件自动向下堆叠

史上最全Elementor Container使用教程(2024)

Flexbox 可以嵌套FlexboxGrid cannot,Flexbox 可以做更加复杂的结构对比之前的 Section 有可飞跃的布局效果

史上最全Elementor Container使用教程(2024)

选择了方向向右的 Flexbox使用 Elementor 的复制容器里面的嵌套的容器时复制出来的容器自动向右堆叠

史上最全Elementor Container使用教程(2024)

Flexbox 的宽度非常有用可以更好的设计布局

例子从上面 2 行下面 1 通过把上面第 1行的宽度设置为 100 px上面第2 行和下面第 1 行设置为 50px就可以变为上面 1 行下面 2

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

上面的例子是第1 行设置为 100px那么中间某个 Flexbox 设置 100px 就可以单独成为一行而且其他的 Flexbox 布局不变

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

Flexbox 嵌套的 Flexbox 可以单独设置方向

史上最全Elementor Container使用教程(2024)

对 Flexbox 嵌套的 Flexbox 一次性对齐设置内间距

史上最全Elementor Container使用教程(2024)

4.1.2 Flexbox Container 现成布局实操

想做嵌套的 Flexbox 的内不同方向的叠放比如下图非常典型的 Banner 该怎么办呢

只要学会这个结构就可以掌握 Flexbox 的基础用法

史上最全Elementor Container使用教程(2024)

首先是左右结构选择第三个

史上最全Elementor Container使用教程(2024)

依次把标题文本编辑器容器(容器中放入 2 个按钮组件)放入左边图片组件放在右边

史上最全Elementor Container使用教程(2024)

因为第一步我们选择容器方向向下所以按钮所在的容器方向自动向下我们把按钮所在的容器方向调为水平即可

史上最全Elementor Container使用教程(2024)

调完里面的细节点击最外面的容器调节最小高度600 左右即可设置副轴为居中典型排版的 banner 就做好了有了外部的基础框架我们才好去润色

史上最全Elementor Container使用教程(2024)

现在从外到内调整选择最外面的 Container点击样式→标准→小画笔→上传图片

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

选择图片组件上传图片如果想要透明背景一定要抠图

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

上传之后我们发现特别的空没有展示完整的背景继续进行调整如图的位置Display Size 是常见的调整

史上最全Elementor Container使用教程(2024)

最外面的 Container 调整之后再往里面调节细节选中标题在内容里面复制粘贴文案

史上最全Elementor Container使用教程(2024)

选中文本编辑器在内容里面复制粘贴

史上最全Elementor Container使用教程(2024)

最后把按钮文案修改下

史上最全Elementor Container使用教程(2024)

最后调整的结果

史上最全Elementor Container使用教程(2024)

4.1.3 Flexbox Container 无现有布局实操

实际实操中一般是选不到完美的布局的比如如下布局Flexbox Container 给出的结构没办法做到继续要进行一些操作

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

first,分析布局结构
需要3 个Container ,1 个在上面,2 个在下面必须选择有上下结构的结构

史上最全Elementor Container使用教程(2024)

选择第一个 Container设置宽度为 100,剩下2 个为 50 即可

或者直接拖拽最下面的Container到上面也可以形成这个结构

史上最全Elementor Container使用教程(2024)

填入对应组件再修改从内到外修改细节即可

史上最全Elementor Container使用教程(2024)

4.1.4 Flexbox Containner Summarize

1. 根据结构外层的 Flexbox 布局要先选好有上下布局必须选择有必须选择有上下布局的结构
2. Flexbox 可以包含 FlexboxGrid
3. 每个 Flexbox 都可以单独设定方向插入组件

4.2 Grid Containner

Grid 是网格式设计的它允许你在两个方向上👉🏻纵向和横向上面控制元素的布局特别适合简单网格的设计和对齐

史上最全Elementor Container使用教程(2024)

4.2.1 什么时候选择使用 Grid

当你需要在行和列上对齐元素时展示图片等行列宽度一样的元素,layout比 Flexbox 更简单网格式分布

史上最全Elementor Container使用教程(2024)

4.2.2 Grid 的使用和功能

史上最全Elementor Container使用教程(2024)

默认提供的结构如下会了上面的Container结构后这种结构随意选择自己也可以用container容器轻松搭建出来

史上最全Elementor Container使用教程(2024)

选中后左侧布局区域下方可以调整当前Grid的列数和行数再往对应的内容区拖入我们的组件即可

史上最全Elementor Container使用教程(2024)

Grid 对齐方式

史上最全Elementor Container使用教程(2024)

Grid 间距

史上最全Elementor Container使用教程(2024)

调整行中 Grid Container 的宽度

史上最全Elementor Container使用教程(2024)

组件的排列顺序选择行为横向列为纵向

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

4.2.3 Flexbox 和 Grid 的关系

相互包含根据对齐方式和布局组合嵌套使用

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

也可以相互转换

史上最全Elementor Container使用教程(2024)

five、Containner的其他常用功能和操作

5.1 如何对Container容器内部组件换行

当我们在一个容器中添加了6个图片但是这样图片展示的空间就会过小如果我们想让它每3个为一行要如何做到?

史上最全Elementor Container使用教程(2024)

需要两个步骤

1.选中当前容器点击左侧工具栏中的换行

史上最全Elementor Container使用教程(2024)

点击完换行后我们发现是每个图片占了一行和我们想要的3个图片一行不一样是因为容器宽度是100%直接点击换行后每张图片的宽度也会占到百分百,so:

2.改变每张图片的宽度百分比为32%这样100%的空间就刚好可以容纳三张图片

3.选中图片组件然后在高级设置中将图片组件的宽度改为32%注意这里改的宽度是高级设置里面的宽度不是样式里面的图片宽度

不直接使用33%是因为我们想给各个图片留下一些间距因为间距的长度也是算在100%的宽度内的所以我们甚至可以直接宽度为30%都可以只要你的图片宽度是大于25%并且小于33%的在不涉及边距的情况下展示的都是一行3个图片

史上最全Elementor Container使用教程(2024)

当我们将6个图片高级设置中的宽度都改成32%的时候图片就已经自动两行排列并且每行3张图片这就是容器换行的概念是通过组件的百分比来控制的

史上最全Elementor Container使用教程(2024)

5.2 Container容器添加链接

这点相对来说也比之前的更加简单和直接

1.选中容器

2.在布局中找到其他选项

3.在HTML的下拉框中选择a链接

4.在链接框中输入要跳转的链接地址后完成容器链接添加

史上最全Elementor Container使用教程(2024)

six、Section 如何转换为Container

Grid Container and Flexbox Container 这么好用Section 转化过去很简单进入页面编辑之后选中 Section 点击转化按钮

转换之后会在转换的Section模块下方自动复制生成一个一模一样的Containner模块

史上最全Elementor Container使用教程(2024)
史上最全Elementor Container使用教程(2024)

确认Containner模块没有问题之后直接删除上方的Section模块即可完成Section到Containner的转换

目前Elementor不支持一键整站转换为Containner需要手动去转换。in addition,一旦转换之后将不可逆

5.1 Elementor导航器中的Containner

existElementor导航器中你可以看到你的Containner排列和嵌套

同时你可以修改Containner在导航器中名称这样可以方便通过导航器快速定位到对应的内容

image 95 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

5.2 Containner的响应式设置

Elementor编辑器的所有元素都支持响应式set up,Containner也不例外Containner的响应式比起老板版本的Section设置项目更多更加灵活

在编辑视图中你可以切换到响应式模式去调整Containner的响应式效果

image 104 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

在Containner的所有设置项目中只要是带响应式标记的都是可以在不同终端设置不同的展示效果并且你可以直接在对应设置项目的通过响应式标记来切换并修改参数

image 105 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

由于设置项目较多我这里介绍几个我常用的响应式设置

1)修改Containner在不同终端的内容的排列顺序

这个我在响应式中经常会使用到尤其是做图片文章布局时候在PC端为了美观我会一个段图片在左边文字在右边下一段图片在右边而文字在左边

但是到了移动端之后图片和文字是上线显示的如果还是按照默认的排序方式显示那么就会出现图片、letter、letter、图片的顺序这种方式对于用户来说并不是正确的阅读顺序

所以我会在移动端通过Containner的Direction设置项去修改内容的显示顺序

for example说下面这样一个模块一个Containner中上下排列了2个Containner上面的Containner左边是图片右边是文字下面的Containner左边的文字右边是图片在PC端显示如下

image 106 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

但是到了移动端下面的Containner文字就会默认在上面图片在下面显示就会不协调情况如下

image 107 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

那么我们可以通过Direction选项来设置下面的Containner内容在手机端的显示顺序

image 108 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

2)修改Containner在不同终端隐藏

在Containner元素的Avanced标签卡中的Visibility设置中你可以设置针对哪些终端显示和隐藏Containner元素

image 109 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

3)设置Containner内的元素在响应式中的对齐方式

在Containner的Layout标签卡下面的Items设置项目中有Justify Content和Align Items可以设置在不同终端的Containner内部的元素对其方式

image 110 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

5.3 Containner的复制与粘贴操作

1) 复制一个Containner

在编辑窗口中选中你需要复制的Containner元素右击菜单中点击Copy即可复制当前选中的Containner

复制是包含Containner内的所有元素内容的

image 97 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

2)粘贴Containner元素

复制Containner之后编辑页面移动到你需要粘贴Containner的位置

如果需要粘贴到某一个Containner的上方位置可以点击下面的Containner的+号

image 98 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

在虚线内空白的地方右击然后在下拉菜单中选择Past菜单

image 99 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

如果要将复制的Containner粘贴到某一个Containner的内部可以选中Containner然后右击在下拉菜单中选中Past

illustrate:原来的Section是不允许这样嵌套粘贴的这也是Containner灵活的地方

image 100 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

3)创建Containner副本

选中Containner之后可以右击点击下拉菜单中的Duplicate菜单自动创建当前Containner的副本在页面中并且副本会直接添加在原Containner的下方或者后面

image 101 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

另外和其他元素一样Containner也支持苦跨站点复制粘贴在当前网站复制Containner之后在另外的站点的编辑页面需要粘贴的地方右击菜单中选择Past Form Other Site

image 102 - Elementor Containner超详细讲解教程(附视频) - NUTSWP

5.4 Elementor嵌套元素中的Containner

Elementor目前支持了嵌套元素功能基于这个功能你可以使用Mega 菜单元素可以在Tab元素Item内部编辑内容

我们以Tab元素为例子以前Tab元素的Item内容只能是文本编辑如果你想用Elementor编辑需要做一个Elementor模版来动态调用

而现在通过Containner和嵌套元素功能你可以直接在Tab元素Item内使用Elementor编辑内容这给页面内容制作带来了很多便捷性

Elementor原生的Mage Menu也是用相同功能和原理

、Summarize

Container使用起来布局结构会更加的简介整个页面的dom节点会变少速度相对应的也会有一点提升不是很大很适合熟练使用建站的朋友新手小白还是之前的形式更加简单初上手还是先按照我的文章把做整个页面的结构理解透彻再回过头学习container会简单很多

About Editorial Department

kuajinggu’s editorial staff is a team of WordPress experts,Led by Dylan,In WordPress、virtual host、e-commerce、Over 10 years of experience in SEO and marketing。kuajinggu was created in 2014 Year,Currently the largest free WordPress resource website in the industry,Often referred to as the Wikipedia of WordPress。