首页 > 这段代码如何设置成为默认关闭

这段代码如何设置成为默认关闭

用了个在线客服代码,但是默认是打开的,我想默认是关闭的
尝试了添加style="display:none;" 结果直接不显示了

代码如下

<div id="box-kefu">

    <div class="kefu-close"></div>
    <div class="kefu-open">
        <div>
        <ul>
            <li><a href="" target="_blank"><i class="qq"></i>在线客服1</a></li>
        </ul>

        </div>
        <a href="javascript:;" class="close">关闭</a>
    </div>
</div>
<script>var online= new Array();</script>
<script src=""></script>
<script>
(function($){
    for (var i=0; i<online.length; i++) {
        if (online[i]) jQuery("#box-kefu .qq").eq(i).addClass("online");
    }
    var _close = $("#box-kefu").find(".kefu-close"),
        _open = $("#box-kefu").find(".kefu-open");
    _open.find("a").hover(function(){
        $(this).stop(true,true).animate({paddingLeft:20},200).find("i").stop(true,true).animate({left:75},200);
    },function(){
        $(this).stop(true,true).animate({paddingLeft:35},200).find("i").stop(true,true).animate({left:10},200);
    });

_open.find(".close").click(function(){
        _open.animate({width:148},200,function(){
            _open.animate({width:0},200,function(){
                _close.animate({width:34},200);

            });
        });
    });
    _close.click(function(){
        _close.animate({width:44},200,function(){
            _close.animate({width:0},200,function(){
                _open.animate({width:138},200);
            });
        });
    });
})(jQuery)
</script>
<div style="text-align:center;clear:both">

两种方法,任选其一


div默认close怎么设置!

【热门文章】
【热门文章】