我的网站遇到JQUERY问题,所以滑块和某些功能无法正常工作。JQUERY:未捕获的错误:语法错误,无法识别的表达式::nth-
错误 - 未捕获的错误:语法错误,无法识别的表达:第n个孩子
有什么办法来解决这个问题?我正在使用Wordpress和BigBang WP模板。
我的网站遇到JQUERY问题,所以滑块和某些功能无法正常工作。JQUERY:未捕获的错误:语法错误,无法识别的表达式::nth-
错误 - 未捕获的错误:语法错误,无法识别的表达:第n个孩子
有什么办法来解决这个问题?我正在使用Wordpress和BigBang WP模板。
你还没有完成标签正确。
您的代码如下。
<h3>2016 Media Partners</h3>
<ul class='grid row6 clients'>
<li>
<a href="https://squareup.com/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/7.png" alt="7" width="225" height="140" /> </a><a href="http://ieee.org/WOMEN" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/3.png" alt="3" width="225" height="140" /></a><a title="MCE" href="http://www.ieee.org/conferences_events/conferences/mce_ems_services.html" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/MCE.jpg" alt="MCE" width="196" height="69" /></a><a title="NCWIT" href="http://www.ncwit.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/ncwit.png" alt="ncwit" width="133" height="120" data-wp-pid="3426" /></a><a href="http://www.lightreading.com/women-in-comms.asp" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/WiC-Member-Badge-1.png" alt="WiC Member Badge-1" width="182" height="112" /></a><a href="http://codechix.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/codechix-logo-square-black.png" alt="codechix-logo-square-black" width="119" height="119" /></a><a href="http://www.MillionWomenMentors.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2013/12/GiT_logo_rgb_square_hr.png" alt="GiT_logo_rgb_square_hr" width="118" height="118" /> </a><a href="http://www.gridalternatives.org/" target="_blank"><img class="alignnone size-full wp-image-5465" src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/Horizontal-GRID-logo.png" alt="Horizontal-GRID-logo" width="1674" height="635" data-wp-pid="5465" /></a> <a href="http://www.womenintechcampaign.com" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/WIT-Logo.png" alt="WIT Logo" width="207" height="52" /></a><a href="http://www.MillionWomenMentors.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/MWM-LOGO.png" alt="MWM LOGO" width="208" height="110" /></a> <a href="http://www.ConvoForGood.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2016/03/C4G_250H.png" alt="C4G" width="208" height="110" /></a> <a href="http://sheplusplus.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2013/12/she-_logo.png" alt="she++_logo" width="117" height="100" /></a> <a href="http://www.oceanicengineering.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/Oceanic.jpg" alt="Oceanic" width="168" height="79" /></a> <a href="http://sites.ieee.org/ttm/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/TTM_250H.jpg" alt="TTM_250H" width="250" height="188" /> </a><a href="http://ieee-wie-scv.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/IEEE-SCV.jpg" alt="IEEE SCV" width="200" height="90" /> </a><a href="http://ieee-region6.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/IEEE-R6.jpg" alt="IEEE R6" width="300" height="80" /> </a><a href="https://women.acm.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/acmw_europe_250H.jpg" alt="acmw_europe_250H" width="250" height="154" />
</li>
</ul></a></p>
请其更改为:
<h3>2016 Media Partners</h3>
<ul class='grid row6 clients'>
<li>
<a href="https://squareup.com/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/7.png" alt="7" width="225" height="140" /> </a><a href="http://ieee.org/WOMEN" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/3.png" alt="3" width="225" height="140" /></a><a title="MCE" href="http://www.ieee.org/conferences_events/conferences/mce_ems_services.html" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/MCE.jpg" alt="MCE" width="196" height="69" /></a><a title="NCWIT" href="http://www.ncwit.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/ncwit.png" alt="ncwit" width="133" height="120" data-wp-pid="3426" /></a><a href="http://www.lightreading.com/women-in-comms.asp" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/WiC-Member-Badge-1.png" alt="WiC Member Badge-1" width="182" height="112" /></a><a href="http://codechix.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/codechix-logo-square-black.png" alt="codechix-logo-square-black" width="119" height="119" /></a><a href="http://www.MillionWomenMentors.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2013/12/GiT_logo_rgb_square_hr.png" alt="GiT_logo_rgb_square_hr" width="118" height="118" /> </a><a href="http://www.gridalternatives.org/" target="_blank"><img class="alignnone size-full wp-image-5465" src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/Horizontal-GRID-logo.png" alt="Horizontal-GRID-logo" width="1674" height="635" data-wp-pid="5465" /></a> <a href="http://www.womenintechcampaign.com" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/WIT-Logo.png" alt="WIT Logo" width="207" height="52" /></a><a href="http://www.MillionWomenMentors.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/MWM-LOGO.png" alt="MWM LOGO" width="208" height="110" /></a> <a href="http://www.ConvoForGood.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2016/03/C4G_250H.png" alt="C4G" width="208" height="110" /></a> <a href="http://sheplusplus.org" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2013/12/she-_logo.png" alt="she++_logo" width="117" height="100" /></a> <a href="http://www.oceanicengineering.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/Oceanic.jpg" alt="Oceanic" width="168" height="79" /></a> <a href="http://sites.ieee.org/ttm/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/TTM_250H.jpg" alt="TTM_250H" width="250" height="188" /> </a><a href="http://ieee-wie-scv.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/IEEE-SCV.jpg" alt="IEEE SCV" width="200" height="90" /> </a><a href="http://ieee-region6.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/IEEE-R6.jpg" alt="IEEE R6" width="300" height="80" /> </a><a href="https://women.acm.org/" target="_blank"><img src="http://ieee-wie-ilc.org/wp-content/uploads/2012/07/acmw_europe_250H.jpg" alt="acmw_europe_250H" width="250" height="154" /></a>
</li>
</ul></p>
当nth-child
操作带有非数字参数时,通常会发生此错误。看到这个问题作为参考:Jquery: Syntax error, unrecognized expression :nth-child()
你可以提供你的代码中除了?我们不能猜到这里的实际问题是什么:-) –
我还没有添加任何自定义代码,这个问题发生在更新wordpress到新版本后。 –