Created
December 24, 2016 14:28
-
-
Save YeomanYe/557d744dcdc21e733ae37d89e938d61d to your computer and use it in GitHub Desktop.
CSS:layout alignCenterByPadding
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
/*通过padding设置居中可用于,满幅背景,定宽的内容*/ | |
.test{ | |
padding:1em; | |
padding:1em calc(50% - 450px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment