为什么SWF按钮在IE和Firefox中有效但在Google Chrome中无效?

时间:2013-06-25 13:32:22

标签: html swfobject

我在联系我们页面中有这段代码:

     <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但在谷歌浏览器中我没有收到任何消息。我不知道问题是什么。如果有人帮忙&lt;我会非常感激。 这是此页面中的表单代码:

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

非常感谢你!

1 个答案:

答案 0 :(得分: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>