Skip to content

Commit

Permalink
fix(*): fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
shangqunfeng committed May 30, 2024
1 parent 32d5e6e commit 3dd14c6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs-vuepress/rn-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ flex 1

**语法**

``` css
```css
flex-grow: 1;
```
Expand All @@ -287,7 +287,7 @@ flex-grow: 1;

**语法**

``` css
```css
flex-shrink: 1;
Expand Down Expand Up @@ -420,6 +420,7 @@ z-index: 2;
margin是margin-top、margin-right、margin-left、margin-bottom的缩写模式, 目前仅支持四种缩写模式。

**值支持类型**

color: 参考[Color](https://reactnative.dev/docs/colors)

**语法**
Expand Down Expand Up @@ -448,6 +449,7 @@ font-family: "PingFangSC-Regular"
可设置字体的大小

**值支持类型**

px,rpx

**语法**
Expand All @@ -462,6 +464,7 @@ font-size: 12px;
设置文本的字体样式。

**值支持类型**

enum: normal,italic

**语法**
Expand All @@ -475,6 +478,7 @@ font-style: italic;
设置文字的权重。

**值支持类型**

enum: 100200300400500600800900

**语法**
Expand All @@ -489,6 +493,7 @@ font-weight: 500;
设置文本的字体变体

**值支持类型**

enum: small-caps, oldstyle-nums, lining-nums, tabular-nums, proportional-nums

**语法**
Expand All @@ -502,6 +507,7 @@ font-variant: lining-nums;
定义字符之间的间距

**值支持类型**

px,rpx

**语法**
Expand All @@ -516,6 +522,7 @@ letter-spacing: 2px;
设置行高。

**值支持类型**

px,rpx,%

**语法**
Expand All @@ -531,6 +538,7 @@ line-height: 16px
设置文本的水平对齐方式。

**值支持类型**

enum: auto, left, right, center, justify

**语法**
Expand All @@ -547,6 +555,7 @@ text-align: center;
设置文本的装饰线样式。

**值支持类型**

enum: none, underline, line-through, underline line-through

**语法**
Expand All @@ -563,6 +572,7 @@ text-decoration-line: underline;
设置文本的大小写转换。

**值支持类型**

enum: none, uppercase, lowercase, capitalize

**语法**
Expand Down

0 comments on commit 3dd14c6

Please sign in to comment.