简体   繁体   English

Fluid 960 Grid jQuery slide切换

[英]Fluid 960 Grid jQuery slideToggle

I am using Fluid 960 Grid for my site and I am using jQuery (the latest). 我正在为我的网站使用Fluid 960 Grid,并且正在使用jQuery(最新版本)。

I want to slideToggle a div which is a child div of a div called serviceitem1 . 我想slideToggle一个div,它是一个称为serviceitem1的div的子div。 Here is my code: 这是我的代码:

div id="serviceitem1"> strong> Service One /strong>
    div class="services">
        ksdjfslkdjfs
    /div>
/div>

$('#serviceitem1').click(function(eve){
    $(this).children().slideToggle('slow'); 
});

The toggling works, however when I click to slide down, the resulting div which is exposed slowly jumps and covers the first div element which I had clicked and the entire frame of the site appears to jump slightly. 切换有效,但是当我单击向下滑动时,露出的结果div会缓慢跳转并覆盖我单击的第一个div元素,站点的整个框架似乎会略微跳转。

I have tried looking at it in IE10, Firefox 19 and the latest Chrome and I get the same result. 我尝试在IE10,Firefox 19和最新的Chrome浏览器中查看它,但得到的结果相同。 I am using Windows 8 Pro. 我正在使用Windows 8 Pro。

Does this make sense to anyone? 这对任何人有意义吗? Also I am using Laravel 3.2.11 as my framework. 我也使用Laravel 3.2.11作为我的框架。 Would Blade be causing any problems? 刀片会引起任何问题吗?

Sorry guyz, 抱歉,伙计,

I chose to deal with this the easy way by using id's on the services div and removing it completely as a child of the upper div named serviceitem1. 我选择通过在服务div上使用id并将其作为名为serviceitem1的上层div的子级将其完全删除而以一种简单的方式处理。 That way I was able to have the animation and not have this jumping issue. 这样,我就能制作动画,而不会遇到跳跃问题。 But if anyone does come up with an answer I would appreciate it if they would share the answer. 但是,如果有人提出答案,我会很感激,如果他们分享答案。

Eagletrophy 鹰奖杯

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

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