This fiddle works in Chrome, but not Firefox. Anyone know why?
这个小提琴适用于Chrome,但不适用于Firefox。谁知道为什么?
Here is the markup:
这是标记:
<button>
<span onclick="alert('yoo')">hey</span>
</button>
1 个解决方案
#1
1
This is by definition, see 4.10.8 The button element
根据定义,请参见4.10.8按钮元素
Content model:
Phrasing content, but there must be no interactive content descendant.内容模型:短语内容,但必须没有互动内容后代。
#1
1
This is by definition, see 4.10.8 The button element
根据定义,请参见4.10.8按钮元素
Content model:
Phrasing content, but there must be no interactive content descendant.内容模型:短语内容,但必须没有互动内容后代。