English 中文(简体)
动画折叠移动其他元素
原标题:animatedcollapse moving other elements

我正使用动画折叠来创建菜单, 显示点击时扩展的 div 。 它有效, 但当一个 div 正在崩溃, 而另一个 div 正在扩展时, 以下元素正在移动, 产生轻微的震动效果 。 我非常肯定, 解决方案包括将可折叠的 div 包在另一个容器中, 但我无法完全控制住它 。

Site: http://nicholasarehart.com/designs/sites/RCA/expertise/

最佳回答

我用同样的Js代码 来做我的一个项目 有两种解决方案:

  1. do not have the divs automatically sized when the div is created it transitions to the next "toggled" div s size, if you style all of the divs to be the same size it should eliminate the transition between sizes
  2. absolutely position the element so that it does not move, given your website this would be the far more complex of the two options.

我两样都用来解决我的问题

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签