Created
December 7, 2019 13:13
-
-
Save MinecraftFuns/7cb3e2575c13259cb9ade81271b33f35 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
.vc { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} | |
.vc { | |
position:absolute; | |
top: 50%; | |
left: 50%; | |
width: 100px; | |
height: 100px; | |
margin:-50px 0 -50px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment