昨天遇到这个问题,我也是折腾成了狗,

到处查,最后收集到三个办法,记录一下。

ueditor上传图片尺寸过大导致显示难看的解决办法

代码贴这里,方便复制

img {  
 max-width: 100%; /*图片自适应宽度*/  
}  
body {  
 overflow-y: scroll !important;  
}  
.view {  
 word-break: break-all;  
}  
.vote_area {  
 display: block;  
}  
.vote_iframe {  
 background-color: transparent;  
 border: 0 none;  
 height: 100%;  
}  
#edui1_imagescale{display:none !important;} 

 

 

ueditor上传图片尺寸过大导致显示难看的解决办法

//设置图片最大宽度,以免撑出滚动条
                'img{max-width:100%;}'+

 

 

 

ueditor上传图片尺寸过大导致显示难看的解决办法

 

loader.setAttribute('style','max-width:650px');//这里就是哥加入的代码 

 

 

三个解决方案,就是这么任性,就是这么随意,走过路过,学到了就叫哥一声雷锋。

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2021-10-27
  • 2022-12-23
  • 2022-02-11
  • 2021-09-03
  • 2021-11-19
猜你喜欢
  • 2021-12-24
  • 2021-09-11
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案