*, *:before, *:after {-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
input[type="text"] {
background-color: green;
padding: 7px;
font-family: helvetica, arial, sans-serif;
font-size: 1.2em;
margin-bottom: 20px;
display: block;
border: solid 2px #bbb;
color: white;
}
input[type="submit"] {
background-color:blue;
font-family: helvetica, arial, sans-serif;
font-size: 1.0em;
font-weight:bold;
padding: 7px;
color: white;
}
input[type="submit"]:hover {
background-color: #ff379f;
color: #fafafa;
}
#subscription-email-text-field {
vertical-align: top;
display:inline-block;
font-size:0.9em;
font-weight:400;
border:0;
width:250px;
height:32px;
margin:0;
}
#subscribe-button {
display:inline-block;
border: 1px solid black;
border-width:0px 0px 0px 1px;
margin:0;
height:32px;
}
<input type="text" id="subscription-email-text-field" name="email" placeholder="box 1">
<input type="submit" id="subscribe-button" value="subscribe">
我有一個文本框和一個按鈕,我希望把它內聯。但不知何故,它們之間有一個小的差距。
我試圖建立填充和利潤率,但它不會改變
爲什麼你更新你的問題嗎?現在答案和問題變得相同 –