Last active
December 12, 2015 01:15
-
-
Save Lucifier129/a4de93101e5db05522e3 to your computer and use it in GitHub Desktop.
兼容IE6\7与现代浏览器的垂直居中css代码
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
.c-wrap { display: table; *writing-mode: tb-rl; } | |
.c-inner { display: table-cell; vertical-align: middle; *width:100%; *margin:auto 0; *writing-mode:lr-tb;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make it a code pen XD