Skip to content

Instantly share code, notes, and snippets.

@binnng
Created April 16, 2013 07:23
Show Gist options
  • Select an option

  • Save binnng/5394044 to your computer and use it in GitHub Desktop.

Select an option

Save binnng/5394044 to your computer and use it in GitHub Desktop.
box-shadow VS dropshadow
<!doctype html>
<html>
<style rel="stylesheet">
div{
width: 60px;
height: 60px;
background: url(http://xnimg.cn/modules/global-publisher/res/tl-photo.png) center no-repeat;
}
.box_shadow{
box-shadow: 0 2px 5px 2px #ccc;
}
.drop_shadow{
filter: DropShadow(Color=#ff9900, OffX=5, OffY=5, Positive=false);
}
</style>
<div class="box_shadow"></div>
<div class="drop_shadow"></div>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment