原文:http://www.loveyuki.com/Article/CSS_Image_Autosize_IE_Firefox.aspx
- .Image {
- max-width:600px;height:auto;cursor:pointer;
- border:1px dashed #4E6973;padding: 3px;
- zoom:expression( function(elm) {
- if (elm.width>560) {
- var oldVW = elm.width; elm.width=560;
- elm.height = elm.height*(560 /oldVW);
- }
- elm.style.zoom = '1';
- }(this));
- }