我有一个按钮,可以在同一页面上打开表单.
该按钮包含在链接中,如下所示:
<a href="index.php?entry=true">
<button type="submit">Enter now!</button>
</a>
Run Code Online (Sandbox Code Playgroud)
表单就在此链接下方,所有内容都在同一页面上.我遇到的问题是它在IE7和8中不起作用和想法?其他地方都很好!
<button>应该是<form>不是<a>你的有效标记的一部分
<form method="post" action="index.ph?entry=true">
<button type="submit">Enter now!</button>
</form>
Run Code Online (Sandbox Code Playgroud)
编辑:好的,所以你需要看起来像按钮的东西.样式<A>使用CSS(未测试,但你得到的图片):
a:link {
border-style: solid;
border-width : 1px 4px 4px 1px;
text-decoration : none;
padding : 4px;
border-color : #69f #00f #00f #69f;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
201 次 |
| 最近记录: |