使用UEditor的編輯框插入圖片的時候,如果圖片尺寸比較大,則圖片會超出編輯器邊框出現滾動條,特別不方便。
解決辦法:在ueditor 的 themes 文件夾下有個iframe.css 文件,在該文件中添加如下代碼即可解決(本人親測):
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%; }
