【发布时间】:2013-01-23 12:55:42
【问题描述】:
所以我使用了 asp:changePassword,它显示了允许用户显示密码的表单; 然后我将面板在屏幕上居中。但是我想在行之间添加间距/单元格填充: 到目前为止我有:
<div style="position:relative;left:300px;top:100px;padding:10px;">
<asp:ChangePassword ID="ChangePassword2" CancelDestinationPageUrl="~/Default.aspx" ContinueDestinationPageUrl="~/Default.aspx" runat="server">
</asp:ChangePassword>
</div>
我试过了: TextBoxStyle-CssClass & BorderPadding 并尝试将 div 定位在 changePassword 内并使用 'class' 将其居中。
我看到有一个然后创建表和行等...
有没有更简单的方法来做到这一点?我要做的就是通过'cellpadding = 5px'将changePassword面板中的每一行分开
请指教谢谢
编辑:
<div style="position:relative;left:300px;top:100px;padding:10px;">
<asp:GridView ID="GV" runat="server" CellPadding="0" CellSpacing="0">
<asp:ChangePassword ID="ChangePassword2" BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid"
BorderWidth="1px" CancelDestinationPageUrl="~/Default.aspx" ContinueDestinationPageUrl="~/Default.aspx" runat="server">
</asp:ChangePassword>
</asp:GridView>
</div>
【问题讨论】:
标签: asp.net css change-password