Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Joomla 3无法单击子菜单_Javascript_Php_Css_Joomla - Fatal编程技术网

Javascript Joomla 3无法单击子菜单

Javascript Joomla 3无法单击子菜单,javascript,php,css,joomla,Javascript,Php,Css,Joomla,您好,我对rflow堆栈是新手,对代码也是比较新的。问题是我有一个使用Mikon模板的Joomla网站 主菜单有一些子菜单。问题是,他们似乎是不可点击的形式de主页,只是形式的文章页面 尝试单击“Servicios”父菜单下的子菜单元素: 然后尝试单击“Servicios”父项下的sumbenu元素: 我一直在寻找原因,也许这与模板有关,有人遇到过这样的事情吗 这是主菜单代码: <div id="sp-main-menu" class="visible-desktop pull-rig

您好,我对rflow堆栈是新手,对代码也是比较新的。问题是我有一个使用Mikon模板的Joomla网站

主菜单有一些子菜单。问题是,他们似乎是不可点击的形式de主页,只是形式的文章页面

尝试单击“Servicios”父菜单下的子菜单元素:

然后尝试单击“Servicios”父项下的sumbenu元素:

我一直在寻找原因,也许这与模板有关,有人遇到过这样的事情吗

这是主菜单代码:

<div id="sp-main-menu" class="visible-desktop pull-right">
    <ul class="sp-menu level-0">
      <li class="menu-item first home"><a href="http://mryc.mx/#sp-slider-wrapper" class="menu-item first home"><span class="menu"><span class="menu-title">Inicio</span></span></a>
      </li>
      <li class="menu-item"><a href="/index.php#sp-about-wrapper" class="menu-item"><span class="menu"><span class="menu-title">Nosotros</span></span></a></li>
      <li class="menu-item parent">
          <a href="/index.php#sp-service-wrapper" class="menu-item parent ">
             <span class="menu">
                  <span class="menu-title">Servicios</span>
             </span>
          </a>
          <div class="sp-submenu sub-level" style="top: 80px; left: 0px;">
          <div class="sp-submenu-wrap" style="margin-top: 0px; margin-left: 0px;">
             <div class="sp-submenu-inner clearfix" style="width: 200px;">
               <div class="megacol col1 first" style="width: 200px;">
                 <ul class="sp-menu level-1">
                   <li class="menu-item first active"><a href="http://mryc.mx/index.php?option=com_content&amp;view=article&amp;id=32&amp;amp;Itemid=176" class="menu-item first"><span class="menu"><span class="menu-title">Banca de inversión</span></span></a></li>
                    <li class="menu-item"><a href="/index.php/2013-11-07-05-29-34/inteligencia-financiera" class="menu-item"><span class="menu"><span class="menu-title">Inteligencia Financiera</span></span></a></li>
                    <li class="menu-item"><a href="/index.php/2013-11-07-05-29-34/asesoria-de-negocio" class="menu-item"><span class="menu"><span class="menu-title">Asesoría de Negocio</span></span></a></li>
                    <li class="menu-item last"><a href="/index.php/2013-11-07-05-29-34/asesoria-para-instituciones-financieras" class="menu-item last"><span class="menu"><span class="menu-title">Asesoría para Instituciones Financieras</span></span></a></li>
                  </ul>
               </div>
             </div>
           </div>
         </div>
       </li>
       <li class="menu-item last"><a href="/index.php#sp-bottom-wrapper" class="menu-item last"><span class="menu"><span class="menu-title">Contáctanos</span></span></a></li>
      </ul>    
    </div>

提前谢谢

更新:


我刚刚发现,如果您右键单击not worling链接并选择“在新页面/标签中打开”,链接工作正常。另外,我在Firefox中进行了测试,错误依然存在,因此我们可以排除浏览器。

该子菜单项上的链接(
/index.php?option=com\u content&view=article&id=32&Itemid=176
)不起作用,但如果您使用有效的锚定标记(如
/index.php\sp bottom wrapper
)将其更改为某个链接(与联系人链接相同)它确实有效。因此,看起来服务链接本身是有效的,因为它将
#sp service wrapper

<section id="sp-service-wrapper" class=" ">...</section>
。。。
它具有有效ID。更进一步,如果您更新子菜单项以链接到各个节的锚定标记,则这些链接也应起作用。但是,这4个部分(投资银行、金融情报、商业咨询和金融机构咨询)都没有特定的ID,所以现在不可能。例如,这是其中一个部分的外观:

<div class="st-fancy-icon-boxes st-fancy-icon-boxes-style1 center ">
    <div class="box-icon clearfix"><i class="st-box-icon fa fa-money"></i></div>
    <div class="box-title clearfix"><h4><font><font class="">Investment Banking</font></font></h4></div>
    <div class="box-desc clearfix"><font><font>The adequacy of resources is a cornerstone for growth and sustainability of any business. </font><font>Through our investment banking services, we support our customers with the necessary resources for new projects, expansions, caps and together continue their road to success.</font></font></div>
    <div class="box-readmore clearfix"><a href="http://mryc.mx/index.php?option=com_content&amp;view=article&amp;id=32"><font><font>See more...</font></font></a></div>
</div>

投资银行
资源的充足性是任何业务增长和可持续性的基石。通过我们的投资银行服务,我们为我们的客户提供新项目、扩张、CAP所需的资源,并共同继续他们的成功之路。

因此,您需要以某种方式更改第一行的HTML以添加类似于
id=“banca de inversion”
的内容,然后您可以更新子菜单项以链接到
/index.php#banca de inversion
,并且它应该可以按预期工作。

该子菜单项上的链接(
/index.php?option=com_content&view=article&id=32&Itemid=176
)不起作用,但如果您使用有效的锚定标记将其更改为某个内容,如
/index.php#sp bottom wrapper
(与联系人链接相同),它确实起作用。因此看起来服务链接本身起作用,因为它将转到
#sp service wrapper

<section id="sp-service-wrapper" class=" ">...</section>
。。。
具有有效ID的。更进一步,如果您更新子菜单项以链接到各个部分的锚定标记,则这些链接也应起作用。但是,4个部分(投资银行、金融情报、商业咨询和金融机构咨询)不是所有部分都有特定的ID,所以现在不可能。例如,这是其中一个部分的外观:

<div class="st-fancy-icon-boxes st-fancy-icon-boxes-style1 center ">
    <div class="box-icon clearfix"><i class="st-box-icon fa fa-money"></i></div>
    <div class="box-title clearfix"><h4><font><font class="">Investment Banking</font></font></h4></div>
    <div class="box-desc clearfix"><font><font>The adequacy of resources is a cornerstone for growth and sustainability of any business. </font><font>Through our investment banking services, we support our customers with the necessary resources for new projects, expansions, caps and together continue their road to success.</font></font></div>
    <div class="box-readmore clearfix"><a href="http://mryc.mx/index.php?option=com_content&amp;view=article&amp;id=32"><font><font>See more...</font></font></a></div>
</div>

投资银行
充足的资源是任何业务增长和可持续发展的基石。通过我们的投资银行服务,我们为客户提供新项目、扩张、资本增值所需的资源,并共同为客户的成功之路提供支持。

因此,您需要以某种方式更改第一行的HTML,以添加类似于
id=“banca de inversion”的内容
,然后您可以更新子菜单项以链接到
/index.php#banca de inversion
,它应该可以按预期工作。

添加一些有问题的代码…如果我访问子菜单项,子菜单项可以很好地单击,也许您只想在悬停这些项时显示一些背景更改。它们似乎可以单击,但问题是当你点击它们时,它们不会打开任何文章。或者你可以从主页的子菜单中访问文章?非常感谢你的快速响应。关于Dabre,我刚刚添加了Condent,我认为滑块导致了一些冲突。没有滑块的菜单工作,有滑块的菜单不工作。添加一些有问题的代码…子菜单如果我访问这些项目,您可能只是想在项目悬停时显示一些背景更改。这些项目似乎可以单击,但问题是当您单击它们时,它们不会打开任何文章。或者,您可以从主页的子菜单访问文章?非常感谢您的快速响应我刚刚添加了图标。我认为滑块导致了一些冲突。没有滑块的菜单有效,有滑块的菜单无效。感谢您的回复。问题不完全在于,子菜单应该指向不同的页面,而不是页面中具有特定ID的元素。例如:投资银行业务子菜单项应指向:正如您所看到的,它是网站的一个单独页面。主页中有一个“投资银行”部分,但我不想指向子菜单中的那个部分。希望我说得清楚,再次感谢!!:)谢谢您的回复。问题不完全在于,子菜单应该指向不同的页面,而不是页面中具有特定ID的元素。例如: