我需要一些幫助。 我是新的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 ... –