我试过几个简单的jQuery操作<button>
标签,但由于某些原因,在IE7上无法正常工作。<button>在IE7中
<!-- HTML -->
<button class="button">Hello</button>
// jQuery, using v1.4.4
$('button').html('Hello World!'); // Works on Firefox and IE7.
$('button').addClass('another-class'); // Works on Firefox; *not* on IE7.
$('button').wrapInner('<span></span>'); // Works on Firefox; *not* on IE7.
有没有人有任何线索呢?
也许与这里描述的行为有关:http://www.peterbe.com/plog/button-tag-in-IE? – jao