forked from yanhaijing/vertical-center
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8cb3c6
commit 5487f3a
Showing
6 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# 水平垂直居中 | ||
|
||
- [lineheight](http://yanhaijing.com/vertical-center/lineheight.html) | ||
## 仅居中元素定宽高适用: | ||
- [absolute + 负margin](http://yanhaijing.com/vertical-center/absolute1.html) | ||
- [absolute + margin auto](http://yanhaijing.com/vertical-center/absolute2.html) | ||
- [absolute + calc](http://yanhaijing.com/vertical-center/absolute3.html) | ||
|
||
## 居中元素不定宽高适用: | ||
- [absolute + transform](http://yanhaijing.com/vertical-center/absolute4.html) | ||
- [writing-mode](http://yanhaijing.com/vertical-center/writing-mode.html) | ||
- [lineheight](http://yanhaijing.com/vertical-center/lineheight.html) | ||
- [table](http://yanhaijing.com/vertical-center/table.html) | ||
- [css-table](http://yanhaijing.com/vertical-center/css-table.html) | ||
- [writing-mode](http://yanhaijing.com/vertical-center/writing-mode.html) | ||
- [flex](http://yanhaijing.com/vertical-center/flex.html) | ||
- [grid](http://yanhaijing.com/vertical-center/grid.html) | ||
- [grid](http://yanhaijing.com/vertical-center/grid.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters