English 中文(简体)
配有moototools的响应性网站的平稳过渡 div 高度
原标题:Smooth transition div height for responsive websites with mootools

目前,在反应灵敏的网络设计上和标记上的工作已完全完成,在所有浏览器宽度上都运作良好。但我无法不管它了。试图将新闻头部的高度与新闻头部保持某种平稳的过渡而不是自慰的下降相提并论。

I setup a jsfiddle for anyone that would like to help with this and I am sure it will come handy to anyone working with responsive web designs. http://jsfiddle.net/rYQtb/10/

许许多多的丁克斯!

问题回答

我想,你想做什么 你需要一个听众 关于改变大小的事件 所以我已经加了一个。

I tried something here started with your fiddle : http://jsfiddle.net/rYQtb/15/
I ve updated the JavaScript and the CSS (added an overflow value). But did you want the height fixed on the global div (like the fiddle) or on each news div ?

希望能帮上忙!





相关问题
Remap Enter keydown to trigger Shift+Enter in JavaScript

I m using Mootools, but a generic answer is fine. I would like to remap the Enter key in a web application. When they hit Enter it should react as though the Shift-Enter has been pressed. I ...

IE8 Crash on getStyle background-position

I ve found a strange bug in Internet Explorer 8. Maybe someone can help me move around it. When I try to grab the background position of an element, using background-position-x all versions of ...

Mootools script not working in Camino/Firefox

I currently have script that slides down a once the page has loaded. So far, it works in Safari, Opera and IE8, however it doesn t work in Camino nor Firefox, so I am guessing it s a Mozilla based ...

What is the (function($)) for in MooTools Javascript

I was reading a post by David Walsh on creating a sprite menu with MooTools. I am fairly new to MooTools, and I did not understand the way he opened his script. In particular, what is (function($){ .....

MooTools: Set focus on click

I ve got an ASP.NET control that contains a checkbox. I want the focus to remain on this checkbox when it s clicked. Here s what I m using: <script type="text/javascript"> window.addEvent("...

热门标签