easyui中设置项csdn博客点击头标一样的显示下拉框实现方式

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yongjiutongmi53151/article/details/86715373

function topRight(){
    var str ="<div id='setting' style='display:none;width:80px'><a class='btn btn-default btn-block' style='width:105px;'><strong>修改个人简介</strong></a><a class='btn btn-default btn-block' style='width:105px;'><strong>修改头像</strong></a>"+
          "<a class='btn btn-default btn-block' style='width:105px;'><strong>修改昵称</strong></a><a class='btn btn-default btn-block' style='width:105px;'><strong>修改密码</strong></a><a class='btn btn-default btn-block' style='width:105px;'><strong>注销</strong></a></div>";
    $.messager.show({
        msg:str,
        showType:'show',
        width:140,
        height:245,
        timeout: 5000,
        style:{
            left:'',
            right:0,
            top:60,
            bottom:'',
            border:0
        }
    });
    if($("#setting").css("display")=="none"){
        $("#setting").show();
    }else{
        $("#setting").hide();
        $(".messager-body").window('close');//关闭$.message.show();
    }
}

猜你喜欢

转载自blog.csdn.net/yongjiutongmi53151/article/details/86715373
今日推荐