首先,我在php / html中创建按钮 p>
< button class =“accordionLic”id =“<?php echo' accordionClass'。$ lic_num?>”>#<?php echo $ lic_num; ?>< / button>
code> pre>
我们可以将其称为“大按钮” p>
文档准备好后,脚本 正在启动,正在为此按钮创建内容(大按钮)+在其中创建另一个按钮(我们可以将其称为'小按钮') p>
// ... code ... //
var text =(elem.innerHTML = accordionHeader [i] +
'< span style =“float:right; font-weight:bold;”>< a href =“?edit = '+ id [i] +'“>
< button class =”btn btn-default“> edit< / button>< / a>'+(i + 1)+'< / span> ')|| “”;
code> pre>
在输出中,这类似于: p>
< button class =“big-button “>
< b>标题< / b>内容
< span style =”float:right“>
< a href =”?edit = 5“>
< button id =“small-button”> edit< / button>
< / a>
< / span>
< / button>
code> pre >
问题是(在firefox中)我无法点击小按钮 code> - 'click'总是在这个大的。 这就像 big-button code>在小按钮 code>前面。 我尝试了 z-index code>,但它根本没有帮助。
在Chrome中,不会出现此问题。 p>
div>