Last active
December 24, 2016 14:12
-
-
Save YeomanYe/044ac6921ccf886406ec326a9b0fbe46 to your computer and use it in GitHub Desktop.
CSS:border transparent
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
.test{ | |
/*设置半透明边框*/ | |
border: 10px solid hsla(0,0%,100%,.5); | |
background: white; | |
/*背景从内边距开始裁切,从而不遮挡半透明边框*/ | |
background-clip: padding-box; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment