layui提示

$(function(){
	//导航鼠标移动右侧显示弹框
    $(".tips").each(function(){
        $(this).tipso({
            useTitle: false,
            position: 'right'
        });
    });

    //鼠标移动顶部显示弹框
    $(".utips").each(function(index,item){
        var t='';
        $(item).hover(function(){
            t = setTimeout(function(){
                var content=$(item).attr("data-tipso");
                $(".show_content").append(content);
                $(".show_bubble").stop(true,true).show();
                var left=$(item).offset().left;
                var width=$(".show_bubble").outerWidth(true);
                var widthOwn=$(item).outerWidth(true);
                var top = $(item).offset().top - realHeight($(".show_bubble"))-10;
                var left=left-width/2+widthOwn/2;
                var bwidth=widthOwn+20;
                $(".show_bubble").offset(function(){
                    newPos=new Object();
                    newPos.left=left;
                    newPos.top=top;
                    return newPos;
                });
                if(bwidth<200){
                    bwidth=200;
                }
                $(".show_content").css('max-width',bwidth);
                $(".show_arrow").css('left',width/2-10);
            },400);
        },function(){
            clearTimeout(t);
            $(".show_bubble").stop(true,true).hide();
            $(".show_content").empty();
        });
    });
});
//计算弹框的高度
function realHeight(obj) {
    var clone = obj.clone();
    clone.css("visibility", "hidden");
    $('body').append(clone);
    var height = clone.outerHeight();
    clone.remove();
    return height;
}
    .txt{ padding-right:5px;line-height: 30px;}
    .layui-card-header button{ border-radius:15px;}
    .layui-select-title {
        display: none;
    }
    .show_bubble{display:none;position:absolute;z-index:999;left:0;top:0;}
    .show_content{background:#353e51;color:#ffffff;border-top-color: #000;border-right-color: transparent;	border-left-color: transparent;	border-bottom-color: transparent; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px; padding:10px; min-width: 20px; word-wrap: break-word;word-break: normal;}
    .show_arrow {-webkit-box-sizing: border-box; -moz-box-sizing:border-box; box-sizing:border-box;border: 10px solid;border-top-color: #000;border-right-color: transparent; border-left-color: transparent; border-bottom-color: transparent; width: 0; height: 0; position: absolute;   text-align: center; }
</style>

   <td><a href="javascript:getAction({$v.id},{$v.istatus});" data-tipso="复核失败原因:{$v.reviewdetail}<br />时间:{$v.reviewtime}"  class="utips a_148cf1">{$statsArr[$v.istatus]}</a></td>

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值