Created
December 18, 2019 03:56
-
-
Save 1000copy/b6f6f65a2058892b871d292c3e9cd116 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
<style> | |
.d1{ | |
width: 300px; | |
height: 300px; | |
background:blue; | |
position: absolute; | |
left: 50%; | |
transform: translate(-50%,0); | |
} | |
</style> | |
<body> | |
<div class="d1"> | |
<span>这是测试</span> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment