angular1 弹框

1.写一个页面然后把最外层div隐藏
2.样式

#one{
    background:rgba(0,0,0,0.3);
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
}
.gun{
    width:80%;
    margin-left:10%;
    position: relative;
    top: 40%;
    text-align: center;
    padding-top:20px;
    background-color: white;
    border-radius: 4px;
}
.gun-p{
    font-size: 17px;
    color: #030303;
}
.picture{
    position: absolute;
    top:25px;
    right: 20px;
}
.p-select{
    color: #AEAEAE;
    font-size: 12px;
}
.gun-btn{
    border: 1px solid #8F8E94;
    width: 32%;
    color: #8F8E94;
    background-color: white;
    margin: 19px 19px 27px 0;
    border-radius: 4px;
    line-height: 31px;
}
.gun-btn:hover{
    background:rgba(46,132,212,0.1);
    border:1px solid rgba(46,132,212,1);
    color:rgba(46,132,212,1);
}
  1. document.getElementById(‘one’).style.display=“block”;

4.效果如下
在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值