Created
April 16, 2013 07:23
-
-
Save binnng/5394044 to your computer and use it in GitHub Desktop.
box-shadow VS dropshadow
This file contains hidden or 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
| <!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