YUI (JS):将菜单栏放入面板中
如果我把 YUI 菜单栏放在主体中,它就可以完美工作。但是,如果我在面板内部使用它,它会显示没有正确的背景。它比应有的要大。除了默认的 sam 皮肤之外,我只使用以下 css。 .windowbody 是面板的类。
<style type="text/css">
body {
margin: 0;
}
.windowbody {
overflow: auto;
padding: 0;
}
.windowbody div {
padding: 0;
margin: 0;
}
</style>
If I put a YUI menu bar in the body it works perfectly. However if I use it inside of a Panel it shows up without the proper background. It is larger than it should be. Other than the default sam skin I'm using only the following css. .windowbody is the class of the panel.
<style type="text/css">
body {
margin: 0;
}
.windowbody {
overflow: auto;
padding: 0;
}
.windowbody div {
padding: 0;
margin: 0;
}
</style>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在研究同样的问题,我很高兴终于找到了另一个人正在尝试做与我相同的事情。我在其他优秀的 YUI 文档页面上找不到任何示例,因此我在以下地址上传了问题的解决方案:http://catalinabuilder.hostjava.net/exercisepanel.html
I've been working on the same problem and I was delighted to finally find one more person who is trying to do the same as I am. I can't find any examples on the otherwise excellent YUI documentation pages so I've uploaded a solution to the problem at this address:http://catalinabuilder.hostjava.net/exercisepanel.html