0
我將如何使按鈕連接到輸入,我不知道如何解決有一個尷尬的差距。如何將按鈕連接到輸入
#ask {
padding: 10px 10px 10px 6px;
font-size:45px;
background-color:#FAFAFA;
min-width: 400px;
padding: 0 auto;
border-radius: 5px;
}
#button {
text-align:center;
}
</style>
<input id="ask" type="text" placeholder = "Ex: how tall is the gateway arch" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Ex: how tall is the gateway arch'"/>
<input type="image" src="qmb.png" name="saveForm" class="btTxt submit" id="button" height="50.5px" padding = "0px"/>
完全相同的結果 –
有空格,你正在使用的圖像? – Tracysss
您也可以使用圖像定位。在CSS中,給它一個位置或「相對」。然後調整頂部或底部屬性。 – Tracysss