2013-06-25 23 views
0

我有這樣一段代碼在我的聯繫我們頁面:爲什麼SWF按鈕在IE和Firefox中可用,但在Google Chrome中不可用?

 <button name="Submit" id="Submit" type="submit" style=" border-style: none; border-width: 0; background-color:transparent" > 
<object data="swf/sending.swf" type="application/x-shockwave-flash" width="190" height="46" form="msg"> 
<param name="movie" value ="swf/sending.swf" /> 
<param name="quality" value="High"> 
<param name="wmode" value="transparent"> 
<embed src="swf/sending.swf" width="190" height="46" quality="High" 
wmode="transparent"> 
</object>   
</button> 

當我去的網頁地址,我嘗試通過點擊按鈕發送消息時,它運行良好,併發送消息給我的電子郵件地址如果我使用IE或Firefox,但在Google Chrome中,我不會收到任何消息。我不知道問題是什麼。如果有人幫助<我會很感激。 而這種情況在本頁面的表單代碼:

<form method="post" action="email.php"> 

太謝謝你了!

+1

是不是有一些代碼丟失?看起來像一個正常的按鈕給我,而不是一個SWF按鈕... – aleation

回答

0
<button name="Submit" id="Submit" type="submit" style=" border-style: none; border-width: 0; background-color:transparent" > 

<input name="Submit" id="Submit" type="submit" style=" border-style: none; border-width: 0; background-color:transparent" /> 

順便說不同,你應該關閉button標籤:

<button name="Submit" id="Submit" type="submit" style=" border-style: none; border-width: 0; background-color:transparent" >Something</button> 

<button name="Submit" id="Submit" type="submit" style=" border-style: none; border-width: 0; background-color:transparent" >&nbsp;</button> 
相關問題