日期:2014-05-18  浏览次数:20511 次

CSS样式,在火狐下为社么不行啊??帮我改改 我用的火狐 2.0
Img { 
  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));} 


------解决方案--------------------
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));}