YUI 按钮未对准

发布于 2024-07-10 05:51:40 字数 317 浏览 4 评论 0原文

我正在使用 YUI,但 YUI 按钮与文本输入字段内联时遇到对齐问题。 FF3 中出现了渲染问题,甚至 YUI 自己的网站上也出现了该问题。

http://developer.yahoo.com/yui/examples/button/btn_example09。 html

正如您所看到的,按钮的位置高于文本字段。 关于如何让所有东西都处于同一高度有什么想法吗?

Im using YUI and am having alignment problems with YUI buttons inline with text input fields. The rendering problem is occuring in FF3 and is even present on YUI's own site.

http://developer.yahoo.com/yui/examples/button/btn_example09.html

As you can see the button sits higher than the text fields. Any ideas on how to get it all at the same height?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

为你鎻心 2024-07-17 05:51:40

在该页面上,在 FF3 中,摆脱了 vertical-align:baseline 规则,使按钮与文本输入框底部对齐。

所以:

#calendarpicker {
    // vertical-align:baseline;
}

On that page, in FF3, getting rid of the vertical-align:baseline rule got the button to bottom-align with the text input boxes.

So:

#calendarpicker {
    // vertical-align:baseline;
}
猫卆 2024-07-17 05:51:40

看起来它与

.yui-skin-sam .yui-button button, .yui-skin-sam .yui-button a {
    min-height:2em;
}

评论的结合也很有帮助。

Looks like it's also a combination with

.yui-skin-sam .yui-button button, .yui-skin-sam .yui-button a {
    min-height:2em;
}

Commenting that out helps too.

清旖 2024-07-17 05:51:40

最后我不得不使用position:relative;

下面是一个实际上正确对齐的 YUI 示例: http://developer.yahoo .com/yui/examples/calendar/calccontainer_clean.html

我复制了它的css

In the end i had to use position:relative;

Here is a YUI example that does actually align correctly: http://developer.yahoo.com/yui/examples/calendar/calcontainer_clean.html

I copied its css

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