img { max-width: 500px; width:expression(this.width > 500 ? "500px" : this.width) } 我只知道这一条,还有其有方法,发一下上来吧