当我点击IE上的行时,它会调用hello()方法并且工作正常,但不能在Firefox中使用。我怀疑这条线为什么这不起作用在Firefox中,但在IE中正常工作
tr align="left" bgcolor="eeeeee" style="padding-top: 3px; cursor: pointer;">
,因为当我删除它,它的工作原理有点
<script language="javascript" type="text/javascript">
function hello(){
alert('hello');
}
</script>
<span style="" onclick="hello();"
onmouseover="this.children[0].style.backgroundColor='#D8EEEE'; this.children[1].style.backgroundColor='#D8EEEE';"
onmouseout="this.children[0].style.backgroundColor=''; this.children[1].style.backgroundColor='';">
<tr align="left" bgcolor="eeeeee">
style="padding-top: 3px; cursor: pointer;">
<td class="blueFont" style="font-weight: bold; <%=style%>">
我试图从已经的onclick
请告诉什么不起作用,并显示您在Firefox中遇到的错误。此外,你应该显示呈现的最终HTML代码,而不是ASP源 – 2010-12-09 12:17:42
我重新格式化你的代码。我说的是“某种”,因为那里肯定缺少一些东西。有一种风格从无处出现,例如... – nico 2010-12-09 12:24:45