开发者

Is it possible to create a <input> tag with only text instead of a button?

Can I show my <input> tag with only text, inst开发者_如何学运维ead of a button? How would I do this?


You could use CSS:

<input style="vertical-align:bottom;overflow:visible; font-size:1em; display:inline; margin:0; padding:0; border:0; border-bottom:1px solid blue; color:blue; cursor:pointer;" name="Submit" type="submit" value="Submit">


If I got your question right, you want to display a < input type="button" value="Foobar" /> with only the text and without the button-style.

<input type="button" value="Foobar" style="border: none; background: none; padding: 0;" />


A button without the button is just a link.

<a href="#" onclick="do stuff;">My Text</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜