$(function(){ var mainH = document.documentElement.clientHeight - 30; //alert("mainH=" + mainH); editor.ready(function() { //edui1_toolbarbox 工具栏高度 //edui1_iframeholder 编辑区域高度 console.log("设置高度="+ $("#edui1_iframeholder").height()); $("#edui1_iframeholder").height(mainH - $("#edui1_toolbarbox").height()); console.log("设置高度="+ $("#edui1_iframeholder").height()); }); });
标签:UEditor,iframeholder,mainH,edui1,高度,height,适应,设置 From: https://www.cnblogs.com/webjlwang/p/17111368.html