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;} 

 

 

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

 

 

 

 

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

 

 

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

posted @ 2017-06-22 09:22  不该相遇在秋天  阅读(6070)  评论(2编辑  收藏  举报