YUI 按钮未对准
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在该页面上,在 FF3 中,摆脱了
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:
看起来它与
评论的结合也很有帮助。
Looks like it's also a combination with
Commenting that out helps too.
最后我不得不使用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