Last active
April 25, 2016 09:02
-
-
Save DarwinniwraD/ed7f66375ca9e0405cf02bbbf06fa4e3 to your computer and use it in GitHub Desktop.
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 is a complete guide for centering a div with CSS. | |
//见过许多方法来居中div,当然有些方法因情况不同而不同 | |
//详细可参考: | |
//1.Centering in CSS: A Complete Guide(https://css-tricks.com/centering-css-complete-guide/) | |
//2.How To Center Anything With CSS(https://codemyviews.com/blog/how-to-center-anything-with-css) | |
//3.CSS layout: tricks and layout techniques in ‘Learn CSS Layout’(http://book.mixu.net/css/5-tricks.html) | |
//4.Absolute Centering(http://codepen.io/shshaw/full/gEiDt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment