我猜这是一个非常简单的问题,但因为我相对较新的asp.net mvc,我会责怪。基本上我有下面的表单,当我提交的值得到张贴在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(" ") @Html.Raw(" ") <input type="image" src="~/assets/img/female.jpg" name="iama" value="female" /> }
谢谢你:-)
参见HTML Input (type=image)在firefox4上不工作
您定义了Image Map,但应该使用按钮
<input type="submit" name="iama" value="male" style="background: url('assets/img/male.jpg');width: 160px;height:160px;border: 0;" />