<input type="button&quot 和有什么区别?/>和<按钮>? [英] What's the difference between <input type="button" /> and <button>?
本文介绍了<input type="button&quot 和有什么区别?/>和<按钮>?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
直到今天我才知道 标签.
I didn’t know about the <button>
tag until today.
推荐答案
基本上, 更灵活,因为它可以在其中包含其他标签.喜欢,
Basically, <button>
is more flexible as it can contain other tags inside it. Like,
<button type="submit"><strong>Click</strong> me, <em>user!</em></button>
您将无法使用常规 执行此操作.
You won't be able to do this with regular <input>
.
这篇关于&lt;input type=&quot;button&quot 和有什么区别?/>和&lt;按钮>?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文