YUI (JS):将菜单栏放入面板中

发布于 2024-08-05 19:40:02 字数 313 浏览 8 评论 0原文

如果我把 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事未完 2024-08-12 19:40:02

我一直在研究同样的问题,我很高兴终于找到了另一个人正在尝试做与我相同的事情。我在其他优秀的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文