Wil*_*ran 28 html javascript css forms
这在IE中不起作用:
.text-button { background: transparent;
text-decoration: none;
cursor: pointer; }
<input type="submit" class="text-button" value="vote+"/>
Run Code Online (Sandbox Code Playgroud)
它显示一个方形按钮.
Vis*_*hal 44
通过此链接复制,您可以使您的按钮看起来像一个链接 -
.submitLink {
background-color: transparent;
text-decoration: underline;
border: none;
color: blue;
cursor: pointer;
}
submitLink:focus {
outline: none;
}Run Code Online (Sandbox Code Playgroud)
<input type="submit" class="submitLink" value="Submit">Run Code Online (Sandbox Code Playgroud)
lab*_*bue 11
<form name='test'>
<a href="javascript:document.forms['test'].submit()">As a link</a>
</form>
Run Code Online (Sandbox Code Playgroud)