Dreamweaver中上下折叠的面板怎样改成左右折叠的面板? 如题,并让标签跟随内容动。代码http://blog.csdn.net/qof3990/archive/2010/08/31/5852994.aspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这里提到了node,似乎是给panelcontent定位用的?Spry.Widget.CollapsiblePanel.prototype.getElementChildren = function(element){ var children = []; var child = element.firstChild; while (child) { if (child.nodeType == 1 /* Node.ELEMENT_NODE */) children.push(child); child = child.nextSibling; } return children;}; 解决了,在width替换height的时候要区分大小写。谢谢大家的引用。 原来ht就是他每步变化的宽度,找到之后,加上content的left,和tab的left,就可以靠右隐藏了。var ht = this.transition(elapsedTime, this.fromWidth, this.distance, this.duration); this.content.style.width = ((ht < 0) ? 0 : ht) + "px"; this.content.style.left = 270-((ht < 0) ? 0 : ht) + "px"; this.tab.style.left = 240-((ht < 0) ? 0 : ht) + "px";注意把tab在content声明赋值过的地方顺次声明赋值,使用查找功能可以很方便的完成。 为什么不能放在上面? 使用js实现带有时间的日期选择器 jquery实现拖拽 单击2个按钮没反应 Ext未定义 单机版的B/S应用系统 涉及ajax的点击事件问题 弹出窗体问题 一小问题 正则替代 谁对 KISSY 了解 介绍一下 万分感谢! js禁止连续刷新?
Spry.Widget.CollapsiblePanel.prototype.getElementChildren = function(element)
{
var children = [];
var child = element.firstChild;
while (child)
{
if (child.nodeType == 1 /* Node.ELEMENT_NODE */)
children.push(child);
child = child.nextSibling;
}
return children;
};
var ht = this.transition(elapsedTime, this.fromWidth, this.distance, this.duration); this.content.style.width = ((ht < 0) ? 0 : ht) + "px";
this.content.style.left = 270-((ht < 0) ? 0 : ht) + "px";
this.tab.style.left = 240-((ht < 0) ? 0 : ht) + "px";
注意把tab在content声明赋值过的地方顺次声明赋值,使用查找功能可以很方便的完成。