CSS 输入框

发布于 2024-09-28 20:38:40 字数 275 浏览 0 评论 0原文

我正在为我的 ASP.NET 应用程序开发 UI,我有一个登录表单,其中有一个框,框内有这样的字段。 (xxxx 是输入框)

Name:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Email:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

我将姓名和电子邮件以及输入框保留在 div 中,但它在 IE7 上运行良好,但当我在 mozilla 或 IE8 中看到它时,它显示在最右边,我如何找到完美的位置在每个浏览器上?

I am developing UI for my ASP.NET application and I have a logon form in which I have a box and inside the box I have the fields like this. (xxxx are the input boxes)

Name:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Email:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have kept the name and email with input boxes in a div but it works fine on IE7 but when I see it in mozilla or IE8 it appears very far right, how do I come up with the perfect placement on every browser?

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

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

发布评论

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

评论(1

水中月 2024-10-05 20:38:40

这可能相当困难。您应该尝试使用 YUI CSS Grid 或 Blueprint 等 CSS 框架,而不是手动放置所有内容。它可以减轻很多痛苦。

至于您的具体实例,如果您在问题上发布相关的 CSS 片段,以便人们可以提供明智的答案,将会有所帮助。

This can be quite hard. You should try to use a CSS framework like YUI CSS Grid or Blueprint rather than manually place everything by hand. It can alleviate a lot of pain.

As for your specific instance, it would help if you posted the relevant CSS snippets on your question so that people can offer intelligent answers.

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