Created
February 27, 2014 02:10
-
-
Save hidoos/9242928 to your computer and use it in GitHub Desktop.
gradient 质感
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
/** | |
* gradient 质感 | |
*/ | |
body,div{ | |
margin:0; | |
padding:0; | |
} | |
.mod{ | |
background:#343434; /* 盒子outside的颜色 */ | |
height:400px; | |
padding:40px; | |
} | |
.mod .box{ | |
width:100px; | |
height:100px; | |
background:#3bb3e0; /* 盒子inside的颜色 */ | |
border:1px solid #000; | |
// 内嵌的颜色必须浅于盒子内部的背景颜色,外部的颜色必须浅于盒子外部的背景颜色 | |
box-shadow: inset 0px 1px 0px #96E4FF, 0px 1px 0px #696363; | |
} | |
.mod .btn{ | |
padding:4px 10px; | |
margin-right:20px; | |
background:#343434; | |
color:#fff; | |
border:1px solid #000; | |
box-shadow:inset 0 1px 1px rgba(); | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="mod"> | |
<div class="box"> | |
</div> | |
<div class="group" style="margin-top:40px;"> | |
<button class="btn">button</button><button class="btn">button</button> | |
</div> | |
</div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment