[wordpress插件] ASD Fullwidth Element SizerASD全宽元素尺寸调整器

wordpress 插件 文章 2020-02-21 21:40 483 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

The easy solution for making images or other HTML elements full window width!

使图像或其他HTML元素全窗口宽度的简单解决方案!

Makes your Gutenberg Cover Image blocks ACTUALLY full window width!

使您的Gutenberg封面图片实际上占据整个窗口宽度!

Just apply the CSS class “fullwidth-element” to your existing HTML tags or Gutenberg Cover Image.

只需将CSS类“全宽元素”应用于现有的HTML标签或古腾堡封面图片。

EXAMPLE:

示例:

<

<< / p>

div class=”my-class fullwidth-element”>

div class =“ my-class fullwidth-element”>

or

要么

Or, In your Gutenberg page, select the Cover Image block, and edit the Advanced settings, set Additional CSS Class to “fullwidth-element” and your Cover Image now does what you always expected it to.

或者,在您的Gutenberg页面中,选择Cover Image(封面图像)块,然后编辑Advanced(高级)设置,将Additional CSS Class(其他CSS类)设置为“ fullwidth-element”,然后Cover Image就可以实现您一直期望的功能。

How it works: In the browser, window width and element size are calculated, and CSS “width” and “margin” values are applied to cause them to occupy the full width of the broswer window, no matter the size of the

工作原理:在浏览器中,计算窗口宽度和元素大小,并使用CSS“ width”和“ margin”值使它们占据浏览窗口的整个宽度,无论

parent container.

父容器。

This process is applied to any HTML element which has the class “fullwidth-element”.

此过程适用于所有具有“ fullwidth-element”类的HTML元素。

FullWidth Element Sizer also sets a timer in the browser to watch for the window width to change, and will recalculate and re-apply full width values if it does.

FullWidth Element Sizer还在浏览器中设置了一个计时器,以监视窗口宽度的变化,如果发生变化,它将重新计算并重新应用全宽值。

安装步骤

Manual installation

手动安装

At a command prompt or using a file manager, unzip the .ZIP file in the WordPress plugins directory, usually ~/public_html/wp-content/plugins .

在命令提示符处或使用文件管理器,将.ZIP文件解压缩到WordPress插件目录中,通常为〜/ public_html / wp-content / plugins。

In the In the WordPress admin Dashboard (usually http://yoursite.foo/wp-admin ) click Plugins, scroll to ASD Fullwidth Element Sizer, and click “activate”.

在WordPress管理员控制台(通常为http://yoursite.foo/wp-admin)中,单击插件,滚动到ASD Fullwidth Element Sizer,然后单击“激活”。

Upload in Dashboard

在控制台中上传

Download the ZIP file to your workstation.

将ZIP文件下载到您的工作站。

In the WordPress admin Dashboard (usually http://yoursite.foo/wp-admin ) Select Plugins, Add New, click Upload Plugin, Choose File and navigate to the downloaded ZIP file.

在WordPress管理员控制台中(通常为http://yoursite.foo/wp-admin),依次选择“插件”,“添加新内容”,单击“上传插件”,选择“文件”,然后导航至下载的ZIP文件。

After that, click Install Now, and when the installer finishes, click Activate Plugin.

之后,单击“立即安装”,然后在安装程序完成后,单击“激活插件”。

下载地址
https://downloads.wordpress.org/plugin/asd-fullwidth-element-sizer.2.201902051.zip
-EOF-

AI助手支持GPT4.0