css expression实现的图片自动缩放
下面给出一个示例: 复制代码代码如下: <style> .Image { max-width:600px;height:auto;cursor:pointer; border:1px dashed #4E6973;padding: 3px; zoom:[removed] function(elm) { if (elm.width>560) { var oldVW = elm.width; elm.width=560; elm.height = elm.height*(560 /oldVW); } elm.style.zoom = ‘1’; }(this)); } </sty
下载地址
用户评论