2013-03-26 25 views
0

我猜這是一個非常簡單的問題,但由於我相對較新的asp.net mvc,我會指責這一點。基本上我有下面的表格,當我提交在Chrome中發佈的值,但不是FireFox。問題提交後的表格值(在Chrome中工作,但不是FireFox)

@using (Html.BeginForm("MyAction", "MyController", new {ReturnUrl = ViewBag.ReturnUrl})) 
{ 
    @Html.AntiForgeryToken() 


<text> 
    Fill out this form homie 
    <br/><br/> 
</text> 

    <input type="image" src="~/assets/img/male.jpg" name="iama" value="male" /> 
    @Html.Raw("&nbsp;") 
    @Html.Raw("&nbsp;") 
    <input type="image" src="~/assets/img/female.jpg" name="iama" value="female" /> 

} 

非常感謝:-)

回答

0

HTML Input (type=image) not working on Firefox 4

您定義圖像映射,而應使用一個按鈕

<input type="submit" name="iama" value="male" style="background: url('assets/img/male.jpg');width: 160px;height:160px;border: 0;" /> 
+0

感謝,這是它,恥辱,我可以使用圖像本身,與背景圖像的按鈕是很難拉下來(我的意思是你必須做具體的stying讓它看起來像...等待它...圖像。 – schmoopy 2013-03-26 23:11:59

相關問題