《css 揭秘》

by Fannie

HTML

<div class='div0'>
  背景定位
</div>

CSS

body {
	background: #000;
}

.div0 {
  padding:30px;
  background: url(http://csssecrets.io/images/code-pirate.svg)
	            no-repeat bottom right green;
	background-origin: content-box;
	max-width: 10em;
	min-height: 5em;
	color: white;
	font: 100%/1 sans-serif;
}