最近在开发时候发现一个很奇怪的错误:
Ext 代码如下:
var east = new Ext.Panel({
region:'east',
margins:'5 0 5 5',
//split:false,
width: 350,
layout:'fit',
//title:'讨论区',
autoScroll :true,
html:'<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="web/analyse/remark.jsp?orId=' + orId + '&arId=' + arId + '"></iframe>',
collapsed: true,
collapsible: true,
title: '讨论区',
plugins: [Ext.ux.PanelCollapsedTitle],
listeners:{
"beforecollapse":function(panel){
panel.setTitle("点击可展开讨论区,或点击上面<<展开并固定讨论区");
},
"beforeexpand":function(panel){
panel.setTitle("讨论区");
}
}
//tbar:tbar,
//contentEl:'or_infor'
});
很奇怪的一个bug,发现每次点击页面闭合或展开后Panel的iFrame每次都重新加载,并且保持
解决方案就是设置属性
hideMode :'visibility',
就不会报错。
目前的情况就是每次点击展开和合并Panel,页面都会重新加载,有高手希望可以解答下。
- 大小: 14.5 KB
分享到:
相关推荐
JumpBuddy-Game-T-Rex-Running-Game-Basic-Version- 我已经使用简单HTML,CSS和JAVASCRIPT制作... 我已经使用(“ Window.getComputedStyle()”)javascript方法来使该元素的所有css属性的对象变得不清晰。 托管项目
obj.currentStyle[attribute]:document.defaultView.getComputedStyle(obj,false)[attribute];}但是如果这个元素是隐藏(display:none)的,尺寸又是未知自适应的,哪有上面的方法就不行了!因为display:none的元素是...
香草JS_fn 无限轮播实施期间的有用事件和功能 parseInt() parseInt(string, 진수설정); // 10진수, 2진수 ... 当从作为第一个参数传递的字符串的第二个字符中遇到代表十... 对于常规元素,应省略或为null。 <d
具体代码如下:Js代码 代码如下:function getCss(elem, css){ if (window.getComputedStyle) { return window.getComputedStyle(elem, null)[css]; }else if (elem.currentStyle) { return elem.currentStyle...
JS从样式表取值的函数,IE中以currentStyle,firefox中defaultView来获取,需要的朋友可以参考下。
本文实例为大家分享了js仿360开机效果的具体代码,供大家参考,具体内容如下 实现效果: ...实现步骤: 1.封装运动函数 2.给图片上的关闭设置一个盒子 ...4.下面图片高度为0,... return window.getComputedStyle(obj, null
本文实例为大家分享了js轮播图之旋转木马效果的具体代码,供大家参考,具体内容如下 思路:给定一个数组,储存每张图片的位置,旋转将位置进行替换 ... window.getComputedStyle(element, null)[attr
ps:是获取样式,不是设置样式。若没有给元素设置样式值,则返回浏览器给予的默认值。(论坛整理) 1、element.style:只能获取写在元素标签中的style属性里的样式值,无法获取到定义在<...window.getComputedStyle
前言 在开发的时候会遇到这种情况,只显示两行,如果超过两行...要使用原生 JavaScript 代码获取一个元素的各个 style 属性,使用 window.getComputedStyle() 是必然的。它可以返回一个 HTML 元素在浏览器中真正显示时
注: 获取Dom元素的Style数组中的指定Style元素 代码如下: ...value) { if (document.defaultView && document.defaultView.getComputedStyle) { var css = document.defaultView.getComputedStyle(element, null); va
var style = window.getComputedStyle( vanilla, null ) var o = {}; this.each(["height", "width", "left", "top"], function( index, name ) { o[name] = +style .getPropertyValue( name ) .slice
跨浏览器方法 function getStyle(elem, cssprop, cssprop2){ if(elem.currentStyle){ return elem.currentStyle[cssprop] }else if(document.defaultView && document.defaultView.... return null } } <
null Section 3.8. undefined Section 3.9. The Date Object Section 3.10. Regular Expressions Section 3.11. Error Objects Section 3.12. Primitive Data Type Wrapper Objects Chapter 4. ...
window.getComputedStyle(element, null)[attr] : element.currentStyle[attr] || 0; } //动画函数 obj---要执行动画的对象 json---要执行到的目标的参数对象 fn为执行完成后的回调函数(可以再次调用此方法按照...
脚本中设置和获取某一个对象的样式中的各个属性和属性值!
//获取元素的真实的,最终的CSS样式属性值的函数 function ... }else if(document.defaultView && document.defaultView.getComputedStyle){ name = name.replace(/([A-Z])/g,”-$1″); name = name.toLowerCase
代码如下://获取元素的样式值。 function getStyle(elem... }else if(document.defaultView&&document.defaultView.getComputedStyle){ name=name.replace(/([A-Z])/g,”-$1″); name=name.toLowerCase(); var s=docume
function GetCurrentStyle (obj, prop) { if (obj.currentStyle) { return obj.currentStyle[prop]; } else if (window.getComputedStyle) { prop = prop.replace (/([A-Z])/g, “-$... return null; } 代码来自
getComputedStyle(element)返回计算出的样式,并检查transform属性显示: 'matrix3d(0.707107, 0.707107, 0, 0, -0.707107, 0.707107, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)' 在这里,我们发现浏览器实际上在内部使用来...
而针对其他标准浏览器, W3C也提供了一个方法getPropertyValue, 此方法, 稍有点复杂, 首先要通过document.defaultView.getComputedStyle获得Css的样式对象, 然后通过该对象的getPropertyValue获取