1. 首页
  2. 数据库
  3. 其它
  4. css expression实现的图片自动缩放

css expression实现的图片自动缩放

上传者: 2020-12-22 04:03:55上传 PDF文件 25.06KB 热度 22次
下面给出一个示例: 复制代码代码如下: <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
下载地址
用户评论