有以下HTML标记:如何对齐的标签和输入与CSS
input[type="password"] {
margin-left: 10px;
background: #F2F2F2;
height: 35px;
font-style: normal;
font-size: 14px;
border: 0;
}
input[type="submit"] {
display: inline-block;
text-decoration: none !important;
color: #fff;
background: #000;
font-size: 10px;
line-height: 1.7;
padding: 9px 29px;
position: relative;
text-align: center;
cursor: pointer;
text-transform: uppercase;
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
border: none;
font-weight: normal;
letter-spacing: 2px;
}
<p>
<label for="pwbox-59">Password: <input name="post_password" id="pwbox-59" type="password" size="20"></label>
<input type="submit" name="Submit" value="Enter">
</p>
我怎样才能通过垂直对齐一行投入?提前致谢!
请看到这一点:HTTPS://jsfiddle.net/5sy3bevb/3/ –
不,我的意思是项目必须在同一行,但通过垂直 – malcoauri
你指的是垂直排列对齐同一列,而不是行。请编辑您的问题说清楚 –