Layer 提示框tips使用(批量提示)
- 一、效果
- 二、部分代码
一、效果
- 基本使用,请前往 >>>Layer 提示框tips使用
二、部分代码
>
<div class="time-tips" id="two">星期二</div>
<div class="time-tips" id="three">星期三</div>
<div class="time-tips" id="four">星期四</div>
<div class="time-tips" id="five">星期五</div>
<div class="time-tips" id="six">星期六</div>
<div class="time-tips" id="seven">星期天</div><script>
layui.use(['layer', 'laydate'], function () {let $ = layui.$;$(function(){var tip_index;$('.time-tips').on({mouseenter:function() {var id = $(this).attr('id');var content = "";if (id == 'one') {content = "这是周一";} else if (id == 'two') {content = '这是周二';} else if (id == 'three') {content = '这是周三';} else if (id == 'four') {content = '这是周四';} else if (id == 'five') {content = '这是周五';} else if (id == 'six') {content = '这是周六';} else if (id == 'seven') {content = '这是周天';}tip_index = layer.tips( content, this, { tips: [3, 'orange'], time: 0 });},mouseleave:function(){layer.close(tip_index);}});});});
</script>
Layer 提示框tips使用(批量提示)相关推荐
- Jquery提示框效果(确认提示框)
<!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8" ...
- ant-design中Input输入框在获取焦点时由于保留了上次输入内容而莫名出现了一个黑色背景的选择提示框,且选择提示框中的值后还会出现蓝色背景
一. 代码环境 "react": "18.1.0", "antd": "^4.20.5", "typescri ...
- html中如何写一个提示框,HTML简单的提示框
由于项目中需要一个简单的提示框,就是鼠标放上去,可以提示相关信息,引用第三方的比较麻烦,所以,这里封装了一个很简单的HTML方法. function show(obj,id) { var objDiv ...
- jeecg 关于.xlsx.xls表格文件导入后提示框功能(后台设置提示框)
导入成功后: 导入时格式错误提示: 当导入模板错时提示 当标题有错误时提示 直接上代码: package org.jeecgframework.web.cgform.service.excel;imp ...
- 前端 鼠标悬停事件 是否显示提示框 onmouseover onmouseout
1,效果图 2,描述 当我鼠标悬停在[问号]标记位置时,名词解释提示框就会出现 3,代码 <div class="lineb biao0"><div class= ...
- ios numlock_从“提示”框:默认情况下启用NumLock,无广告的iOS应用和立体声供电的派对灯...
ios numlock Once a week we round up some of the great tips readers have sent into the tip box. This ...
- (转)基于Metronic的Bootstrap开发框架经验总结(6)--对话框及提示框的处理和优化...
http://www.cnblogs.com/wuhuacong/p/4775282.html 在各种Web开发过程中,对话框和提示框的处理是很常见的一种界面处理技术,用得好,可以给用户很好的页面体验 ...
- kindle降级卡大树_从提示框:Kindle购物流程图,iOS降级和DIY焊接笔
kindle降级卡大树 Once a week we round up some of the tips from the HTG tips box and share them with the g ...
- swift实现提示框第三方库:MBProgressHUD
GitHud的下载地址是:https://github.com/jdg/MBProgressHUD/ 下载完成后,将MBProgressHUD.h和MBProgressHUD.m拖入已经新建好的Swi ...
- iOS学习笔记--01swift实现提示框第三方库:MBProgressHUD
本文使用swift语言使用MBProgressHUD. 开源项目MBProgressHUD可以实现多种形式的提示框.使用简单,方便. GitHud的下载地址是:https://github.com/j ...
最新文章
- 语义SLAM近5年主要技术进展及研究趋势
- Xcode升级到8之后的一些需要我们手动配置的地方
- cp: /usr/bin/chromedriver: Operation not permitted
- docker命令大全
- 解决 VSCode 编写 C++11 代码报红问题
- 【数据库系统概论】考研第二部分重点分析【2.2】
- 牛客练习赛74 E CCA的期望(算概率的技巧+floyd处理)
- doctrine find的对象转换成数组_「ES6基础」Array数组的新方法(上)
- “双十一”即将来临,先来看看快递物流企业的大数据
- Apache2.4 根目录修改
- sap 打印预览界面点击打印时记录打印次数_9个Excel打印神技巧!从此打印不求人!...
- emc re 整改 超标_两种常见EMC整改流程
- 中国移动MM如何助力网络视频反盗版
- 矩阵键盘及其基本原理
- Traitors Eight 硅谷“八叛徒”
- python读取图片信息_笔记整理4——python实现提取图片exif信息
- Conventional-path insert(传统路径插入)
- 前端维护项目该怎么做呢
- 五一假期维修手机感想
- 防火墙、WAF、IPS、IDS、堡垒机的区别