即使使用经典(文档).ready

时间:2015-04-30 16:26:29

标签: javascript jquery css resize

大家好,我有一点接触我的问题:

我已经找到了这个页面:maelmayon.fr/teddy.php

当你调整大小时,一切顺利,就像我想要的那样。但是,我希望第一眼就能看到它。用户不必调整页面大小以查看她的假设。

以下是 jQuery

$(function(){
    resizefunction();
    $( window).on('resize',resizefunction);
});

function resizefunction() {
    var aside1 = $('aside').height();
    var aside2 = $('.archives').height(); 
    var content = $('article').height();
    var total = (aside1 + aside2);
    $('article').css("height", total+'px');
}

希望你能帮助我。

Ps:另一个小问题是:为什么文章的尺寸比它应该小一点?

1 个答案:

答案 0 :(得分:0)

我无法进入该页面,但我猜你的图像让你搞砸了尝试

Response.WriteBinary