我需要一些帮助。 我是新的CSS,所以我不知道为什么我的输入“textarea”不垂直与其他输入对齐? 它更1或2像素向右......为什么我的输入不对齐?
这里是我的jsfiddle: http://jsfiddle.net/uxpedro/tDxc5/14/
form{
width:255px;
height:266px;
margin: 0 auto;
margin-top:200px;
}
input[type=text]{
font-family:verdana;
width:250px;
height:40px;
padding-left:5px;
background-color:rgba(255,255,255,0.95);
border-style:none;
}
textarea{
font-family:verdana;
margin-top:30px;
max-width:250px;
min-width:250px;
min-height:100px;
max-height:200px;
background-color:rgba(255,255,255,0.95);
border-style:solid;
border-color:rgba(215, 40, 40, 0.9);
}
input[type=submit]{
margin-top:-3px;
width:250px;
height:40px;
color:white;
background-color:rgba(215, 40, 40, 0.9);
border-style:none;
}
您有'margin-top:30px;'设置为'textarea'。将其更改为'margin-top:4px;' – tsHunter
对不起,我不是非常具体,我的意思是垂直对齐,“textarea”更向右或向右移动2px ... –