如何使輸入按鈕在Onclick中處於活動狀態?如何在窗體元素中標記按鈕活動onclick
<div class="paForm-right">
<form onsubmit="" name="form1" id="form1" method="post">
<input type="submit" class="paForm-choose" id="paForm-bottom-vk" value="Visitenkarten" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-briefbogen" value="Briefbogen" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-flyer" value="Flyer" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-faltblaetter" value="Faltblätter" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-einzelblaetter" value="Einzelblätter" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-plakate" value="Plakate" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-postkarten" value="Postkarten" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-prospekte" value="Prospekte" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-kataloge" value="Broschüren usw." name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-mappe" value="Mappe" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-buch" value="Bücher" name="submit" />
<input type="submit" class="paForm-choose" id="paForm-bottom-calender" value="Kalender" name="submit" />
<input type="hidden" name="value[Produkt]" id="senden" value="Detailanfrage" />
</form>
<br />
</div>
這是我的CSS ...但活躍的背景不工作...
input.paForm-choose:hover
background-color:#D10C2D;
#paForm-bottom-vk
background-image:url(../Icon_Visitenkarte_HG-Trans.png);
#paForm-bottom-vk:hover
background-image:url(../Icon_Visitenkarte_HG-Trans.png);
#paForm-bottom-vk:active
background-image:url(../Icon_Visitenkarte_HG-active.png);
看起來你真的想有一個''
該解決方案是一個小speciale,輸入在前端像按鈕一樣形成loock,並且在不同的形式中具有不同的任務... – salitola
在圖庫上,例如基於相同css的按鈕矩陣作爲不同滑塊的鏈接: ... – salitola