2013-03-24 102 views
0

我有以下表單。我用圖像「login_button_1.jpg」替換了該按鈕。它工作正常,唯一的問題是,當我將鼠標箭頭放在圖像上時,它仍然是一個箭頭,它不是向用戶顯示這是一個可以點擊的按鈕的手。如何改變這一點,使鼠標指針是手而不是箭頭?用圖像替換html表單按鈕

<div class="homepageTable" width:40px; margin-right:auto; margin-left:auto; style="text-align:right" >      
<form action="register_form.php" method="POST" id="register_form">      

    Name <input type="text" size="25" name="name" placeholder="first name"><br/> 
    Surname <input type="text" size="25" name="surname" placeholder="last name"><br/> 

    <input type="submit" value="" name="submit" style="background:url('img/login_button_1.jpg') no-repeat; width:300px; height:80px; border:none;"/>          
    </form>      
</div> 
+0

您可以添加'風格= 「光標:指針;」' – darma 2013-03-24 17:54:15

回答

1

嘗試增加cursor: pointer輸入風格里面,像這樣:

<input type="submit" value="" name="submit" style="background:url('img/login_button_1.jpg') no-repeat; width:300px; height:80px; border:none; cursor: pointer"/>