在 IE 中将文本与 div 内的输入字段对齐
我正在尝试将文本与输入字段对齐。它可以在 chrome 或 FF 中运行,但不能在 IE 中运行。任何帮助表示赞赏。 示例
I am trying to align text to input fields. It works in chrome or FF but doesn’t in IE. any help appreciated. Exemple
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文本框上的
float:right
是不必要的,它会破坏 IE。删除它(但将text-align:right
保留在父div
上),它在 IE7+(和 Chrome)中显示正常The
float:right
on the textboxes is unnecessary and it screws IE. Remove it (but keep thetext-align:right
on the parentdiv
) and it displays fine in IE7+ (and Chrome)