简体   繁体   English

jQuery同位素转移标签?

[英]Jquery Isotope shifting a tags?

I am using Isotope with filters with the following elements as my .items . 我正在将同位素与下列元素作为.items过滤器一起使用。

<div class="item filtername>

    <a class="fancybox" href="#fancybox">

    <div class="projimage">
      <h2>TITLE</h2>
      <img class="lazy" src="image.jpg" />
    </div><!--PROJIMAGE-->

    </a> 

    </div>

Isotope works, but the weird thing is that a tags seem to move on every other .item . 同位素的作品,但奇怪的是, a标签似乎每隔移动.item

Some end up with the </a> in a different position then above, eg: 有些人最终将</a>置于与上方不同的位置,例如:

<div class="item filtername>

    <a class="fancybox" href="#fancybox">

    <div class="projimage">
      <h2>TITLE</h2>

     </a><!---WTF???--->

      <img class="lazy" src="image.jpg" />
    </div><!--PROJIMAGE-->

    </div>

I am using Lazy Load and Fancy Box in conjunction with this but I cannot figure out why this is occurring. 我与此同时使用了“懒惰加载”和“花哨的盒子”,但是我无法弄清为什么会这样。

Would anyone know why this could be occurring? 谁知道为什么会这样吗?

The page is here: http://www.pixelframe.com.au/test-page.html if anyone wants to take a look. 该页面位于: http : //www.pixelframe.com.au/test-page.html(如果有人想看一下)。

在此处输入图片说明

Found it was my CMS (ModX Revo). 发现这是我的CMS(ModX Revo)。 For some reason it freaks if you put an a tag within an a tag. 由于某种原因,如果您在标签中放置标签,它会很奇怪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM