YUI 调整大小——手柄不显示
我对 YUI 真的很陌生,现在已经为此苦苦挣扎了好几天。
我有这段代码,其中detailsPanel是HTMLDivElement
var resizeDetails = new YAHOO.util.Resize(detailsPanel,
{
句柄:['t'],
最大高度:150
});
当我在 Firebug 中检查这一点时,顶部没有调整大小手柄。我确信我错过了一些微不足道的东西,但它会是什么?为了显示手柄,是否必须满足一些要求?
谢谢
I am really new to YUI and have been struggling with this for days now..
I have this piece of code where detailsPanel is HTMLDivElement
var resizeDetails = new YAHOO.util.Resize(detailsPanel,
{
handles: ['t'],
maxHeight: 150
});
When I examine this in Firebug there is no resize handle on top. I'm sure I'm missing something trivial, but what can it be? Are there some requirements that have to be fulfilled in order for the handles to show up?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道 YUI 的带有示例的文档页面并不总是完整的(或者假设对前面的页面/主题有深入的了解)。如果您还没有尝试过:在示例页面上查看源代码并对照示例检查示例,看看是否可以发现差异:
http://developer.yahoo.com/yui/examples/resize/simple_resize_clean.html
我们已经通过这种方式自己解决了许多 YUI 问题。祝你好运!
I know with YUI the documentation pages with examples are not always complete (or assume advanced knowledge of previous pages/topics). If you didn't already try this: do a view source on their sample page and check your example against it to see if you can spot the differences:
http://developer.yahoo.com/yui/examples/resize/simple_resize_clean.html
We have solved numerous YUI issues ourselves this way. Good luck!