IE中的密码文本模式对齐问题? [英] password text mode alignment issue in IE?

查看:78
本文介绍了IE中的密码文本模式对齐问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i在我的页面下面有页面对齐问题,

我用ASP.NET开发的应用程序

问题是我有一个文本框

在这个文本框中我已经设置了密码的文本模式

我的问题在下面,

ex:

name = ............ //普通文本框(宽度为168px),不使用textmode

pwd = ........ // textmode =密码(宽度168px)



我的代码是:

hi all,
i have a page alignment issue on my page below,
the application i have developed by ASP.NET
the problem is i have a text box
in this text box i have set the textmode in password
my problem is below,
ex:
name =............ // normal textbox (width 168px)without using textmode
pwd =........ // textmode =password (width 168px)

my code is:

<table width="100%">

<tr>
<td colspan="2" align='left' class="txtright" style="width: 45%">
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtName">*
</asp:RequiredFieldValidator>Name:--%>
Title:
</td><td align="left" style="width: 181px">
<asp:DropDownList ID="drpTitle" runat="server" Width="53px">
<asp:ListItem>Mr</asp:ListItem>
<asp:ListItem>Mrs</asp:ListItem>
<asp:ListItem>Miss</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2" align='left' class="txtright" style="width: 45%">
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtName">*
</asp:RequiredFieldValidator>Name:--%>
Name:<span style="color:Red">*</span>
</td><td align="left" style="width: 181px">
<asp:TextBox ID="txtName" runat="server" Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" class="txtright" colspan="2">
Surname:<span style="color:Red">*</span>
</td>
<td align="left">
<asp:TextBox ID="txtSurname" runat="server" Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
</tr>
<tr>
<td align="right" class="txtright" colspan="2">

Password:<span style="color:Red">*</span>
</td>
<td align="left">
<asp:TextBox ID="txtPass" runat="server"    Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
</tr>
<tr>
<td align="right" class="txtright" colspan="2">
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtSurname">*
</asp:RequiredFieldValidator>Surname:--%>
Confirm Password:<span style="color:Red">*</span>
</td>
<td align="left">
<asp:TextBox ID="txtConfirmPass" runat="server"   Width="168px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
</tr>

</table>







当下它在firefox和chrome上工作正常完美

但IE正在解决上述对齐问题

实际上我设置了两个文本框宽度是168px

如果我在密码文本框中删除文本模式然后它适用于两个浏览器

但是当我设置文本框模式我得到上面的问题

所以请给我一个解决方案,因为我尝试了许多其他方法来解决这个问题,但不是。



问候,

stellus。




the moment is it was working fine on firefox and chrome perfectly
but IE am getting the above alignment issue
actually i was set the both text box width is 168px
if i removed the text mode in password text box then it was working fine for both browser
but when i set text box mode am getting the above issue
so please give me a solution for this because i tried many other way to resolve this issue but am not.

with regards,
stellus.

推荐答案

这篇关于IE中的密码文本模式对齐问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆