Created
March 16, 2015 09:37
-
-
Save think2011/a35b5d93e78305618f45 to your computer and use it in GitHub Desktop.
兼容IE8 - 9 的图片预览
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
function previewImg(el, inputFile) { | |
el.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod = scale)"; | |
el.filters("DXImageTransform.Microsoft.AlphaImageLoader").src = inputFile.value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment