为什么Gmail的按钮是“div”标签而不是“button”标签?
以下是来自Chrome Firebug的Gmail按钮代码:
<div id=":or" class="T-I J-J5-Ji ar7 T-I-ax7 L3 T-I-JO" role="button" tabindex="0" aria-expanded="false" style="-webkit-user-select: none; " aria-haspopup="true">
<span class="Ykrj7b">More</span>
<div class="G-asx T-I-J3 J-J5-Ji"></div>
</div>
感谢您的提前帮助,Yosef。
div
和span
元素的渲染速度比依赖于操作系统的控件要快得多。 - haynar