/* 防止img过大撑开 */
img{
max-width:1002px;/* Other */
_width:expression((this.offsetWidth > 1002) ? "1002px" : this.offsetWidth+"px" );/* IE */
}
图片尺寸过大时会撑开页面解决方法
最新推荐文章于 2021-06-03 17:20:17 发布
/* 防止img过大撑开 */
img{
max-width:1002px;/* Other */
_width:expression((this.offsetWidth > 1002) ? "1002px" : this.offsetWidth+"px" );/* IE */
}