1export const img3115 = (imgElement: HTMLElement) => { 2 // 移除 3.1.15 以前 .img width 样式 3 if (imgElement.style.minWidth) { 4 // 居中需要 minWidth 样式,不能移除 style 属性 5 imgElement.style.width = ""; 6 } else { 7 imgElement.removeAttribute("style"); 8 } 9};