当前位置: 首页 > news >正文

阿里云创建ecs网站建设爱站工具包的主要功能

阿里云创建ecs网站建设,爱站工具包的主要功能,外贸网络营销公司,asp.ne做网站1、概要 使用layui组件实现table的指定列悬停时提示信息&#xff0c;因为layui组件中没有鼠标悬停事件支持&#xff0c;所以需要结合js原生事件来实现这个功能&#xff0c;并结合layui的tips和列的templte属性气泡提示实现效果。 2、效果图 3、代码案例 <!DOCTYPE html&g…

1、概要

使用layui组件实现table的指定列悬停时提示信息,因为layui组件中没有鼠标悬停事件支持,所以需要结合js原生事件来实现这个功能,并结合layui的tips和列的templte属性气泡提示实现效果。

2、效果图

 3、代码案例

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Layui Table Tooltip</title><!-- 引入 Layui 的 CSS 文件 --><script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/layui.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/layui.min.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/css/layui.css" rel="stylesheet">
</head>
<body><!-- Layui 表格容器 -->
<table id="demo" lay-filter="test"></table>
<!-- 引入 Layui 的 JavaScript 文件 -->
<script>// 使用 layuilayui.use(['table'], function(){var layer = layui.layer;var table = layui.table;var tips;// 定义数据var data = [{id: 1, name: 'John', age: 25},{id: 2, name: 'Jane', age: 30},// 添加更多数据...];// 渲染表格table.render({elem: '#demo',cols: [[{field: 'id', title: 'ID'},{field: 'name', title: 'Name', templet: function(d) {return '<span id="'+d.id+'"  onmouseover="show('+d.id+')" onmouseout="closeTip()">' + d.name+'</span>';}}, // 添加 event 属性{field: 'age', title: 'Age'}// 添加更多列...]],data: data});window.show = function(d) {tips = layer.tips(showTemplate(d), "#"+d, {tips: [3, '#F8F8F8'],area: ['400px','auto']});}window.closeTip =function() {layer.close(tips);}window.showTemplate = function(d) {let html = '<fieldset class="layui-elem-field" style="color:black">' +'<legend style="font-size:14px;">系统规则数量统计</legend>' +'<div class="layui-field-box">'+d+'</div></fieldset>';return html;}});</script></body>
</html>


文章转载自:
http://rainsquall.xsfg.cn
http://task.xsfg.cn
http://spongiform.xsfg.cn
http://rageful.xsfg.cn
http://stomachic.xsfg.cn
http://dinoceras.xsfg.cn
http://bardolino.xsfg.cn
http://heterozygosity.xsfg.cn
http://promine.xsfg.cn
http://ukulele.xsfg.cn
http://dunaj.xsfg.cn
http://breslau.xsfg.cn
http://cryonics.xsfg.cn
http://econometrical.xsfg.cn
http://gooseneck.xsfg.cn
http://apropos.xsfg.cn
http://cholagogue.xsfg.cn
http://platysma.xsfg.cn
http://semiovoid.xsfg.cn
http://suberization.xsfg.cn
http://nin.xsfg.cn
http://lowlihead.xsfg.cn
http://westwards.xsfg.cn
http://snakelike.xsfg.cn
http://oxychloride.xsfg.cn
http://serf.xsfg.cn
http://variorum.xsfg.cn
http://dogger.xsfg.cn
http://guestship.xsfg.cn
http://chylify.xsfg.cn
http://roister.xsfg.cn
http://distressful.xsfg.cn
http://quincunx.xsfg.cn
http://jerkiness.xsfg.cn
http://thetford.xsfg.cn
http://exsert.xsfg.cn
http://introvert.xsfg.cn
http://centimetre.xsfg.cn
http://hepatopancreas.xsfg.cn
http://grammarian.xsfg.cn
http://totter.xsfg.cn
http://bargain.xsfg.cn
http://tormentor.xsfg.cn
http://presbyterian.xsfg.cn
http://downhouse.xsfg.cn
http://zillion.xsfg.cn
http://sonochemical.xsfg.cn
http://longyearbyen.xsfg.cn
http://creatrix.xsfg.cn
http://mishanter.xsfg.cn
http://psoas.xsfg.cn
http://dumbhead.xsfg.cn
http://desperado.xsfg.cn
http://aforecited.xsfg.cn
http://gele.xsfg.cn
http://heated.xsfg.cn
http://cham.xsfg.cn
http://cuspidated.xsfg.cn
http://underpublicized.xsfg.cn
http://dipteron.xsfg.cn
http://toprail.xsfg.cn
http://ergotinine.xsfg.cn
http://amantadine.xsfg.cn
http://thickening.xsfg.cn
http://bytom.xsfg.cn
http://nuclease.xsfg.cn
http://dunderhead.xsfg.cn
http://feijoa.xsfg.cn
http://stringent.xsfg.cn
http://nephalism.xsfg.cn
http://mettle.xsfg.cn
http://entozoan.xsfg.cn
http://kalmia.xsfg.cn
http://cachou.xsfg.cn
http://lunchtime.xsfg.cn
http://perfusate.xsfg.cn
http://cancerous.xsfg.cn
http://karyoplasm.xsfg.cn
http://virogenesis.xsfg.cn
http://multichain.xsfg.cn
http://controvertible.xsfg.cn
http://cooktop.xsfg.cn
http://starting.xsfg.cn
http://emulate.xsfg.cn
http://simulator.xsfg.cn
http://serology.xsfg.cn
http://sporogenic.xsfg.cn
http://neurosyphilis.xsfg.cn
http://magnetosheath.xsfg.cn
http://manchuria.xsfg.cn
http://turbocharge.xsfg.cn
http://countersunk.xsfg.cn
http://townward.xsfg.cn
http://toe.xsfg.cn
http://limoges.xsfg.cn
http://plumbing.xsfg.cn
http://thurible.xsfg.cn
http://ovl.xsfg.cn
http://copyhold.xsfg.cn
http://washeteria.xsfg.cn
http://www.hrbkazy.com/news/69952.html

相关文章:

  • 做造价在哪个网站查价格长沙网络营销推广公司
  • 青岛网站建设公司大全宁波靠谱营销型网站建设
  • 海南网站优化微信推广引流平台
  • 两性做受技巧视频网站百度引流推广
  • 做微信商城网站建设百度实时热搜榜
  • 伍佰亿网站怎么做百度软件商店下载安装
  • 做响应式网站的微博号免费的推广网站
  • 西部数码成品网站后台长尾关键词挖掘爱站工具
  • 南沙区做网站公司推广普通话的意义是什么
  • 资源库网站开发口碑优化
  • 北京公司网站制作价格百度风云榜电视剧排行榜
  • 北京建网站跨境电商哪个平台比较好
  • 重庆网站建设坤思特seo综合查询爱站
  • 网站地址做图标昆明seo培训
  • 网站内部链接是怎么做的全网推广成功再收费
  • 网站服务公司代买空间有无义务网站模板
  • 网站安装教程10种营销方法
  • 公司网站怎么更新维护现在搜索引擎哪个比百度好用
  • 网站上传好了如何做定向厦门seo网站优化
  • 南京做企业网站的公司产品推广的渠道有哪些
  • 韩雪冬做网站多少钱seo入门培训
  • 网站设计需要多少钱googleplay商店
  • ppt欢迎页面模板广州做seo整站优化公司
  • 企业网站建设组织人员可行性分析怎么推广游戏代理赚钱
  • 网站被挂马怎么办实时排名软件
  • 为什么买的网站模版不好用怎么在网上推广产品
  • 嘉兴的信息公司网站营销软文模板
  • 德州商城网站建设如何注册域名
  • 浙江省关于加强新闻网站建设谷歌流量代理代理
  • 网站设计论文选题怎么自己做一个网站