Skip to content

Instantly share code, notes, and snippets.

@rocketxujia
Created December 21, 2012 06:53
Show Gist options
  • Save rocketxujia/4351107 to your computer and use it in GitHub Desktop.
Save rocketxujia/4351107 to your computer and use it in GitHub Desktop.
可乐,走你~
*{
margin: 0;
padding: 0;
}
.coke {
width: 600px;
height: 400px;
overflow: auto;
}
.coke .stage {
background: url(http://www.romancortes.com/ficheros/coke-scroll.png) no-repeat;
background-position: 0 0;
padding-left: 400px;
width: 800px;
}
.coke .stage:after{
content: '\0020';
height:0px;
display: block;
clear: both;
}
.coke .stage .coke-body {
float: left;
margin-top:0px;
height: 336px;
background: url(http://www.romancortes.com/ficheros/coke-label.jpg) 0 11px repeat-x;
background-attachment: fixed;
width: 194px;
}
.coke .stage .coke-edge {
display: inline-block;
height: 336px;
float: left;
margin-left: -194px;
width: 194px;
background: url(http://www.romancortes.com/ficheros/coke-can.png) no-repeat;
}
<div class="coke">
<div class="stage">
<p class="coke-body"></p>
<p class="coke-edge"></p>
</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment