2014-11-28 4 views
0

에 표시되지 않습니다 제출 버튼이 파이어 폭스에 표시되지 않습니다, 파이어 폭스에 있지만, 크롬 및 Internet Explorer

<form class = "form-buy" action="buy-form.php" method="post"> 
    <input name="lp_current" type="hidden" id="lp-current2"> 
    <input name="server_current" type="hidden" id="server-current2"> 
    <input name="amount" type="hidden" value="" id="divisions-cost"> 
    <input name="discount_amount" type="hidden" value="" id="divisions-cost-discount"> 
    <input name="discount_rate" type="hidden" value="" id="divisions-discount-rate"> 
    <input name="item_name" type="hidden" id="divisions-item-name" value=""> 
    <input name="submit" type="submit" value="Buy Boost" id="divisions-buy-button"> 
</form> 

하지만, 파이어 폭스에서 작동 내 다른 양식 버튼을 다른 제출 내 :

form id="contactform" name="contactform" class="contactform" action="contact.php" method="post" onsubmit="return validate('contactform');"> 
    <label class = "col1 first" for="sender"><font color=red>*</font>E-mail:</label> 
    <input class = "col4" type="text" name="sender" id="sender" /> 
    <div class="clearfix"></div> 
    <label class = "col1 first" for="IGN">IGN:</label> 
    <input class = "col4" type="text" name="IGN" id="IGN" /> 
    <div class="clearfix"></div> 
    <label class="col1 first" for="message"><font color=red>*</font>Message:</label> 
    <textarea class="col5" rows="5" name="message" id="message"></textarea> 
    <input type="submit" value = "submit" /> 
</form> 

좋아, 그래서 닫는 태그를 시도하고 제출 단추가 텍스트 및 이미지 아래에 숨어있는 것으로 나타났습니다.

솔루션 : "오버플로 : 숨김"이라고 나타났습니다. 내 CSS 파일에, 그리고 그것이 숨겨진 이유 였어. 답변 주셔서 감사합니다.

+0

두 가지 양식간에 CSS의 내용이 다른가요? 작동하지 않는 양식에서 제출 버튼에 할당 된 ID가 있습니다. 를 입력 해 보았습니까? 또한, Cory

답변

1

가레스이 올바르지 수 있지만 나는 것 CSS, jQuery 또는 버튼을 숨길 수있는 업스트림을 확인하십시오. 귀하의 버튼이 보이지 않는다는 사실은 그것이 반드시 구문 문제는 아니라고 말해줍니다. 그러나 Gareth는 자체 마감 태그를 제안하고 사용해야합니다.

작동하는 양식에는 제출 단추와 관련된 ID가 없지만 작동하지 않는 양식에서 수행해야합니다. 이로 인해 CSS, jQuery, AngularJS 등에서이 버튼을 제어하는 ​​무언가가 있다고 생각됩니다. 양식에서 다음과 같이 작동하지 않는 버튼을 변경하면

<input name="submit" type="submit" value="Buy Boost" /> 

또는

<button type="submit">Buy Boost</button> 

둘 중 하나라도 작동합니까?

-1

죄송합니다, 댓글을 달았을 것이다 그러나 나는 50 평판 아직 ..이없는 것이 문제를 일으키는하지만 그들은 ', 귀하의 의견 태그를 닫아야합니다 .. 유효한 HTML에 대한 변경을 권장해야합니다

하지 않음 자기 닫는 태그이므로 두 번째 형식처럼 다음과 같이되어야합니다.

<input type="x" name="y" /> 

노트는 지난 꺾쇠 괄호 유효한 코드

JSFiddle 전에 슬래시 -이 도움이 http://jsfiddle.net/62bfj1f0/

희망, 가레스

+0

답변이 없지만 아래쪽 투표가 약간 가혹한 것 같습니까? :) –

+0

동의하지 않았습니다. :( – Wang

관련 문제