这里是即时通讯工作的网站,原谅我,如果我没有足够具体,即时通讯新的这一点。当浏览器调整大小时,高度自动显示隐藏内容
http://daniel.grocock.me/portnew
设置为#introexpand DIV段的高度并具有调整大小功能 检查看是否#introexpand需要适应在更大或更小的区域时,浏览器已经调整。
function resize() {
$("#introexpand").css("height", "auto").show();
var pHeight = $("#introexpand p:first").height() + 15;
$("#introexpand").css("height", pHeight);
}
因此,在重新设置高度之前将pHeight设置为自动,并在短时间内显示,以便获得正确的高度。
现在的问题是,当我调整浏览器的大小#introexpand div弹出之前链接span.learnmore点击。
如果我从CSS中删除高度汽车,它似乎修复它,但然后单击时,#introexpand div剂量函数。
欢迎来到Stack Overflow! – Wex
这个函数在'$(window).resize()'里面运行吗? –
@KevinB是的,它的名字是$(document.ready) – Danman