easyui tab 加载iframe 高度问题(解决iframe右侧总出两个滚条方法)
2016-11-08 16:23
399 查看
问题描述:
浏览器兼容性导致右侧出现双滚动条。
html主要代码:
js主要代码:
一、亲自验证方法(推荐):
解决iframe右侧总出两个滚条方法
有其他更好的解决方法欢迎留言。
浏览器兼容性导致右侧出现双滚动条。
html主要代码:
<div data-options="region:'center',border:false" style="background:#eee;"> <div id="tabsBar" class="easyui-tabs" fit="true"> </div> </div>
js主要代码:
function addTabPage(tabName,tabUrl){ if($("#tabsBar").tabs("exists",tabName)){ $("#tabsBar").tabs("select",tabName); }else{ $("#tabsBar").tabs("add",{ title:tabName, content:'<iframe scrolling="auto" frameborder="0" src="' + tabUrl + '" style="width:100%;height:100%;"></iframe>', closable:true, tools:[{ iconCls:"icon-mini-refresh", handler:function(){ $('#tabsBar').tabs('getSelected').find("iframe")[0] .contentWindow.location.reload(true); } }] }); } }
一、亲自验证方法(推荐):
解决iframe右侧总出两个滚条方法
#tabsBar .tabs-panels>.panel>.panel-body { overflow: hidden; }二、源自网络解决方法:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
有其他更好的解决方法欢迎留言。
相关文章推荐
- easyui tab 加载iframe 高度问题
- FckEditor使用时遇到的两个问题,未能加载xxxx和上传图片无响应的解决方法
- jquery ajax应用中iframe自适应高度问题解决方法
- iframe跨域自适应高度问题的解决方法
- iframe自适应高度加载脚本,解决不能使用onload事件问题(兼容)
- iframe 自适应高度问题解决方法
- jquery ajax应用中iframe自适应高度问题解决方法
- easyui tab 加载iframe 高度问题
- ExtJs非Iframe框架加载页面实现 解决自适应高度
- iframe自适应高度解决方法
- WebBrowser中解决多Frame加载问题的两种方法
- 正试图在 os 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。问题的解决方法!
- hibernate 延迟加载(Lazy)问题spring下解决方法
- IE 6 下无法加载图片的奇怪问题及其解决方法
- 把同一个Resource添加到同一个Group中两个不同Application导致的问题及解决方法
- 解决eclipse在代码提示时每个方法出现两个的问题(图)
- VC的两个问题的解决方法
- Hibernate延时加载lazy机制问题及其解决方法
- web应用程序bin目录下的dll无法加载问题解决方法
- 用户控件动态加载图片问题解决方法!