input输入框不能右对齐,怎么办
1个回答
展开全部
1
2
3
4
<div style="width:500px;"><span style="width:100px;text-align:right;">姓名 *</span><input type="text" name="cec_Firstname" value="" required maxlength="20" /></div>
<div style="width:500px;"><span style="width:100px;text-align:right;">电话 *</span><input type="text" name="cec_Company" value="" required maxlength="20" /></div>
<div style="width:500px;"><span style="width:100px;text-align:right;">地址 *</span><input type="text" name="cec_Address" value="" required maxlength="100" /></div>
<div style="width:500px;"><span style="width:100px;text-align:right;">电子邮件 *</span><input type="text" name="cec_email" value="" required maxlength="50" /></div>
css中写 div span{width:100px;text-align:right;}
2
3
4
<div style="width:500px;"><span style="width:100px;text-align:right;">姓名 *</span><input type="text" name="cec_Firstname" value="" required maxlength="20" /></div>
<div style="width:500px;"><span style="width:100px;text-align:right;">电话 *</span><input type="text" name="cec_Company" value="" required maxlength="20" /></div>
<div style="width:500px;"><span style="width:100px;text-align:right;">地址 *</span><input type="text" name="cec_Address" value="" required maxlength="100" /></div>
<div style="width:500px;"><span style="width:100px;text-align:right;">电子邮件 *</span><input type="text" name="cec_email" value="" required maxlength="50" /></div>
css中写 div span{width:100px;text-align:right;}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询