2013-06-25 24 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> 
相关问题