0
<form id="searchForm" onsubmit="return validsearch()" action="search.php" method="post" name="searchForm">
  <input class="nnew_ttxtbx" type="text" name="searchf">
  <input width="55" type="image" height="21" border="0" align="right" src="images/srch.png">
</form>

これは私のコードです。Firefox では png img place の送信クエリが表示されますが、Chrome では正しく表示されます。何が間違っている可能性がありますか?

4

1 に答える 1

1

<button>通常のタグだけを使ってみませんか?

<form id="searchForm" onsubmit="return validsearch()" action="search.php" method="post" name="searchForm">
  <input class="nnew_ttxtbx" type="text" name="searchf">
  <button type="submit" style="width: 55px; height: 21px; border: none;">
    <img src="images/srch.png" />
  </button>
</form>
于 2013-02-03T13:48:03.967 に答える