2016-07-31 180 views
0

我有一个<li>元素与3个非常相似的锚标记。前两项工作应该没问题,但第三项工作并没有:它在hover上改变颜色,但不能点击。 Google Chrome,Firefox和IE11的这种行为是相似的,因此它可能不是浏览器。我有很多类似的网页,以前从未遇到过这样的麻烦。一个锚标记不工作,类似的锚标记工作

活页hereCTRL +得到你到最后的评论,其中最后<a>的问题。

这部分的基础HTML是

<ul id='commentul'> 
 
    <li> 
 
    <img alt='' src='http://1.gravatar.com/avatar/72f74d7bd6a20a2f9dd37e6af9d45850?s=80&#038;d=mm&#038;r=g' srcset='http://1.gravatar.com/avatar/72f74d7bd6a20a2f9dd37e6af9d45850?s=160&amp;d=mm&amp;r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /> \t <h3>By Eszter Babarczy on July 30th, 2016</h3> 
 
    <p>Hi! I ran the dialogue with 21 variables using their names. The program insists these are string variables (although they are set to scale). What am I doing wrong? Thanks a lot in advance!</p> 
 
    </li><!-- #comment-## --> 
 
    <li> 
 
    <img alt='' src='http://0.gravatar.com/avatar/3bd63d9e0384df2d2e5cc82890712aaa?s=80&#038;d=mm&#038;r=g' srcset='http://0.gravatar.com/avatar/3bd63d9e0384df2d2e5cc82890712aaa?s=160&amp;d=mm&amp;r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /> \t <h3>By <a href='http://www.spss-tutorials.com/about-us/' rel='nofollow'>Ruben Geert van den Berg</a> on July 31st, 2016</h3> 
 
    <p>Hi Eszter!</p> 
 
    <p>Try and run <a href="http://www.spss-tutorials.com/spss-descriptives-command/" rel="nofollow">DESCRIPTIVES</a> on all relevant variables. SPSS will (rightfully) refuse to generate descriptives for string variables and throw a warning.</p> 
 
    <p>Now, in SPSS, you can have string variables set to scale. It doesn't make sense, though. "Scale" in SPSS means that you're dealing with a metric variable (the <a href="http://www.spss-tutorials.com/measurement-levels/">measurement level</a> is interval or ratio). </p> 
 
    <p>The defining characteristic of metric variables is that numeric calculations (sum, mean) are meaningful for them and such calculations are not possible on string variables. So we usually see that "scale" is only used for numeric variables whereas all string variables are set to nominal but perhaps this doesn't hold for your data.</p> 
 
    <p>A tiny example illustrating this point is <a href="http://www.spss-tutorials.com/spss-syntax-examples/no-descriptives-for-metric-string-variable.html">No Descriptives for Metric String Variable</a>. If that doesn't hold for your data, please get back at me, ok?</p> 
 
    </li><!-- #comment-## --> 
 
</ul><!-- id='commentul'> -->

+0

这是当前的页码,实际上,我是跨度,而不是href。 –

回答

1

在过去的锚a你有&nbsp;,在标签内,像这样:<a &nbsp;href="..."

删除,它会工作

+0

谢谢你! Google Chrome中的源代码中没有看到“ ”。但是,**我删除了Wordpress UI中的(单个)空间,然后放回**并更新了评论。这解决了问题 - 尽管我仍然没有真正看到事情出了什么问题。 – RubenGeert