arcgis api 3.X 修改自带弹窗样式

自带的弹窗介绍:

修改:

/*修改原有弹窗的css样式*/
  /* 弹窗整体 */
.esriPopup {
    font-size: 16px;
    box-shadow: 10px 10px 5px #888888;
}
.esriPopup .sizer {
    position: relative;
    width: 400px;  //弹窗宽度
    z-index: 1;
}
  /* 标题部分 */
.esriPopup .titlePane {
    background-color: rgba(7, 128, 207, 0.6) !important;
    font-size: 16px;
    line-height: 30px;
}
  /* 标题部分的最大化按钮隐藏 */
.esriPopup .titleButton.maximize {
    display: none;
}


/* 下一个动作按钮 */

.esriPopup .titleButton.next {
    right: 33px;
    background-position: -16px 0;
    width: 9px;
    height: 17px;
    background: url(../images/infowindow/close.png) no-repeat;
    display: none;
}
  /* 修改标题关闭按钮 */
.esriPopup .titleButton {
    background: url(../images/infowindow/close.png) no-repeat;
}



/* 弹窗主要内容部分 */

.esriPopup .contentPane {
    position: relative;
    max-height: 600px;
    line-height: 35px;
    overflow: auto;
    font-weight: 600;
    padding: 10px 6px 6px 10px;
    background-color: rgba(72, 170, 194, 0.6);
    color: #333333;
    /* background: url(../images/infowindow/selected_tab.png); */
    background-size: 100% 100%;
    background-position: center center;
}
/* 修改弹窗显示的时候,有个小三角对着被选中的要素 */
.esriPopup .pointer,
.esriPopup .outerPointer {
    background: rgba(72, 170, 194, 0.5);
    ;
}


/* 下方动作按钮 */

.esriPopup .actionsPane {
    display: none;
}


/* 关闭按钮 */

.esriPopup .titleButton.close {
    right: 3px;
    background-position: 0 0;
    width: 25px;
    height: 30px;
}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值