從這個話題了一些按鈕顯示:how do i make an invisible text input box visible on hover?製作在訂立形式
我讀到這個問題,它可以幫助我很多,我想出了這個代碼:
HTML:
<div id="box1">
<form action="">
<input type="string" name="amount" />
</form>
</div>
CSS:
#box1 {
width:100px;
height:30px;
}
#box1:hover input {
display:block;
padding:3px;
}
#input {
display:none;
}
我的問題是,一旦我投入的金額,我想通過conf irm按鈕顯示出來。這可能嗎?
在此先感謝。
你需要JavaScript來實現這一目標 - 你尋找那種解決方案? – kinakuta
僅供參考:'type =「string」'應該是'type =「text」','#input'應該是'input'。或者可能'#box1 input',除非你想在你的網站上隱藏_every_輸入。 – powerbuoy