使用UEditor的编辑框插入图片的时候,如果图片尺寸比较大,则图片会超出编辑器边框出现滚动条,特别不方便。
解决办法:在ueditor 的 themes 文件夹下有个iframe.css 文件,在该文件中添加如下代码即可解决(本人亲测):
img {
max-width: %; /*图片自适应宽度*/
}
body {
overflow-y: scroll !important;
}
.view {
word-break: break-all;
}
.vote_area {
display: block;
}
.vote_iframe {
background-color: transparent;
border: none;
height: %;
}