Skip to content

Commit

Permalink
add css-shape category
Browse files Browse the repository at this point in the history
  • Loading branch information
lvzhenbang committed Oct 10, 2018
1 parent 6952ef1 commit f92a826
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions shape.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@

这里不是说不可以使用其它的html元素,只是这样的好处是在html方便引入,而不需要每次引入都需要添加大量的html片段(夸张说法)。

### 主要方法

可以使用的样式属性如下:

```
* border
* border-radius
* transform
* box-shadow
```

为了兼容性,使用pseudo-elements(::before, ::after) 和上面样式属性中的一种或几种随机组合。

当然,在前端我们经常使用的时svg和font-icon。

还用一种是css3的shape-outside实现文本环绕的效果。

下面主要介绍第一种。

### 目录

<details>
Expand Down

0 comments on commit f92a826

Please sign in to comment.