Obsidian Advanced Slides Plugin 网格组件

通过使用 <grid> 标签,可以对幻灯片内容进行分块布局。

1 内容

<grid> 布局能够调整幻灯片内容的大小和位置。

2 基本语法

<grid drag="width height" drop="x y">
Tip

默认情况下,上述所有数值是基于幻灯片尺寸的百分比。如果是像素尺寸,请在数值后面加上单位(px)。

3 坐标和定位

对于 Drag 参数,可以设置 xy 设置正值和负值。正值和负值的总结如下:

X
X
-X
-X
-Y
-Y
Y
Y
Text is not SVG - cannot display

4 幻灯片示例


X 和 Y 轴释义

60 x 55

<grid drag="25 55" drop="-5 10" style=bg="green">
25 x 55

90 x 20 ---

常用网格位置

为了方便,此插件对一些常用的网格位置进行命名。命名位置可以用于替代 drop 参数的 xy 坐标。具体列表如下:

Tip

Drap 属性没有被指定是,grid 组件默认会设置为 50100


Top Left Right with default size Bottom

Flow

语法定义于网格排版流程。下面展示了如何使用 Flow 语法结构。

<grid drag="width height" drop="x y" flow="col | row">

对于 colrow 属性定义布局行为。如果为指定 flow 属性。将会自动继承默认的 col 流行为。

Column Flow

flow="col" 时,网格内布局如下:

以下幻灯片将会阐述这些说明。


Heading

X
X
-X
-X
-Y
-Y
Y
Y
Text is not SVG - cannot display

Lorem Ipsum is simply dummy text


Row Flow

flow=row 时,布局如下:


## Left
X
X
-X
-X
-Y
-Y
Y
Y
Text is not SVG - cannot display

Lorem Ipsum is simply dummy text


属性

bg 参数

bg 参数用于定义 Grid 的背景。具体语法如下:

<grid  drag="width height" drop="x y" bg="color">

其中,bg 参数的颜色可以使用任何有效的 CSS 颜色值


### Make

Noise

### some

Border

Grid 中的 Border 属性可以显示自定义边框,具体语法如下。

<grid  drag="width height" drop="x y" border="width style color">

其中:

这里有一个简单的例子:


thick dotted blue 20px solid white

thick dotted blue


Animation

animate 属性能够用于定义grid 的动画。

<grid  drag="width height" drop="x y" animate="type speed">
Tip

speed 选项是可选地。可以指定动画的速度慢一点,还是快一点。


Opacity

Opacity 属性用于控制网格的不透明度。具体语法如下:

<grid  drag="width height" drop="x y" opacity="level">

其中 level 可以取值 0.01.0 之间的人一直。透明度为 0.0 时网格不可见。

Filter

Filter 属性用于定义网格的过滤效果,具体语法如下:

<grid  drag="width height" drop="x y" filter="effect">

对于Filter 属性的效果可以使以下类型之一:

这里有个例子:


!Image.jpg

Text is too blurry


Rotate

Rotate 属性用于控制网格的二维旋转,具体语法如下:

<grid  drag="width height" drop="x y" rotate="deg">

deg 选项为正数和负数,表示0到360 度旋转范围。
这里有个例子:


Hello

World!


This text is aligned to the left side of the box This text is aligned to the right side of the box Stretches the text so that each line has equal width (like in newspapers and magazines)

Padding

Paddin 填充属性用于定义网格自定义的填充。

<grid  drag="width height" drop="x y" pad="top right bottom left">

###### Lorem Ipsum wasnt simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book here there
车辆管理系统
车辆管理系统
用车管理
用车管理
事件管理
事件管理
基础信息管理
基础信息管理
字典信息设置
字典信息设置
车辆列表
车辆列表
驾驶员列表
驾驶员列表
用车申请
用车申请
车辆分配
车辆分配
违章管理
违章管理
事故管理
事故管理
OA 审批
OA 审批
审批通过
审批通过
分配车库
分配车库
Text is not SVG - cannot display

Alignment

align 用于网格的水平对齐。

<grid  drag="width height" drop="x y" align="type">

可用的选项如下:

下面是示例演示。


This text is aligned to the left side of the box This text is aligned to the right side of the box Stretches the text so that each line has equal width (like in newspapers and magazines)