Created
August 30, 2018 09:19
-
-
Save solome/d591522d51072c286dd2bd79b0629149 to your computer and use it in GitHub Desktop.
[CSS 居中] #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
.foo { | |
position: absolute; | |
left: 50%; | |
transform: translateX(-50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment