gpt4 book ai didi

css - 样式不可编辑的输入复选框和文本框

转载 作者:行者123 更新时间:2023-11-28 11:39:32 24 4
gpt4 key购买 nike

我正在表格中制作一个登录表单,但我很难按照我想要的方式格式化所有内容(不要介意表格的左边距,只是在油漆上搞砸了)。

我想让它看起来像这样:

how it should look

但是目前看起来是这样的:

wrong

整个表格都在一个名为“span54”的 div 中。

复选框“box”当前的宽度为 50px(我希望这样),但这也会影响文本框的宽度。

如何区分该 div 中的文本框?

当前的CSS代码:

复选框(检查复选框)

enter image description here

文本框(检查的文本框)

enter image description here

表格代码

<table class="logintable">
<tr>
<th colspan="2" rowspan="1">Login</th>
</tr>

<tr>
<td class="creds"><asp:label id="user" runat="server" text="User:" /></td>
<td colspan="1" rowspan="1"><input id="UserNameTextBox" type="text" runat="server" /></td>
<td colspan="1" rowspan="1"><asp:RequiredFieldValidator ID="vUserName" ControlToValidate="UserNameTextBox" Display="Static" ErrorMessage="Username Inválido" runat="server" /></td>
</tr>

<tr>
<td class="creds"><asp:label id="pass" runat="server" text="Password:" /></td>
<td colspan="1" rowspan="1"><input id="PasswordTextBox" type="password" runat="server" /></td>
<td colspan="1" rowspan="1"><asp:RequiredFieldValidator ID="vUserPass" ControlToValidate="PasswordTextBox" Display="Static" ErrorMessage="Password Inválida" runat="server" /></td>
</tr>

<tr>
<td colspan="3" rowspan="1"><asp:Button ID="btnlogin" runat="server" Text="Login" Class="btn-login" onclick="LoginButton_Click" /><asp:CheckBox id="RemPassword" cssclass="checkbox" runat="server" autopostback="false" text="Lembrar-me"/></td>
</tr>

<tr>
<td><asp:Label id="MsgLabel" runat="server" /></td>
</tr>

</table>

最佳答案

编辑文件dq.css,将第336行附近的width:50px;改为width:160px;

关于css - 样式不可编辑的输入复选框和文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20743818/

24 4 0
文章推荐: javascript - 如何在 Javascript 中动态更改图像不透明度
文章推荐: asp.net 中 mm/dd/yyyy 格式的 Javascript 日期验证
文章推荐: javascript - ID 作为 jquery 中
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com