layer弹出层右上角的关闭按钮怎么没有显示

问题描述:layer弹出层右上角的关闭按钮怎么没有显示,但鼠标移上去又可以点击

解决方式:

这是因为样式中需要一个图标,你的项目中缺少。解决如下;
1、下载图标:http://www-x-zi-han-x-net.img.abc188.com/theme/hplus/js/plugins/layer/skin/default/icon.png 另存为。
2、找到样式 layer.css 中的 layui-layer-ico 这个类,根据其中url的配置保存在相对于的目录下。

 

 

下载地址:http://www-x-zi-han-x-net.img.abc188.com/theme/hplus/js/plugins/layer/skin/default/icon.png

 

posted @ 2020-02-25 12:45  许宝  阅读(7853)  评论(0编辑  收藏  举报