Created
October 9, 2012 18:55
-
-
Save fengliu222/3860703 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
<div class="pic"> | |
<span class="title">Beauty</span> | |
<img class="p" src="http://imgcdn.zcool.com.cn/img3/cover/5/59/c_m_1349759769511.jpg" alt="" /> | |
</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
body{margin:0;padding:0; background: url('http://thecodeplayer.com/uploads/media/pxpat.png');} | |
.pic{ | |
width:250px; | |
margin:25px auto; | |
-webkit-box-shadow:2px 2px 2px 2px; | |
position:relative; | |
} | |
.title{ | |
display:block; | |
position:absolute; | |
z-index:1; | |
padding:3px; | |
width:80px; | |
left:0 ;top:150px; | |
font-size:13px; | |
font-weight:bold; | |
background:rgba(0,0,0,0.5); | |
} | |
.pic img{ | |
margin:10px 0; | |
-webkit-filter:grayscale(1); | |
-webkit-transition:all 0.5s ; | |
} | |
.pic img:hover{ | |
-webkit-filter:none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment