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

天津网站建设排名百度推广软件

天津网站建设排名,百度推广软件,牛商网股票代码,开发app需要公司吗需求背景 历史项目使用 BootstrapTable 作为前端组件 应客户需要调整&#xff1a; 冻结前四列对于大文本文字显示部分内容&#xff0c;鼠标悬浮显示完整内容 冻结列 1、引入相关CSS,JS CSS <link rel"stylesheet" href"/css/bootstrap.min.css"> …

需求背景

历史项目使用 BootstrapTable 作为前端组件
应客户需要调整:

  • 冻结前四列
  • 对于大文本文字显示部分内容,鼠标悬浮显示完整内容

冻结列

1、引入相关CSS,JS

CSS

<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/plugins/bootstrap-table/bootstrap-table.min.css">
<link rel="stylesheet" href="/editor-app/css/bootstrap-table-fixed-columns.css">

JS

<script src="/js/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/editor-app/libs/bootstrap-table-fixed-columns.js"></script>

完整示例

<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml"  xmlns:th="http://www.w3.org/1999/xhtml">
<html>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/plugins/bootstrap-table/bootstrap-table.min.css">
<link rel="stylesheet" href="/editor-app/css/bootstrap-table-fixed-columns.css">
<style>
</style>
<head th:include="include :: header"></head>
<body class="gray-bg"><div class="wrapper wrapper-content "><table style="width: 100%;"></table><div class="row"><div class="col-sm-12 select-table table-striped"><table id="***Table" data-mobile-responsive="true"></table></div></div></div><!--shiro控制bootstraptable行内按钮看见性  --></div><div th:include="include :: footer"></div><script src="/js/plugins/bootstrap-table/bootstrap-table.js"></script><script src="/js/plugins/bootstrap-table/bootstrap-table.min.js"></script><script src="/editor-app/libs/bootstrap-table-fixed-columns.js"></script><script type="text/javascript" src="/js/appjs/***test.js"></script>
</body>
</html>
2、对应BootstrapTable增加冻结列属性

fixedColumns: true, //是否开启冻结列
fixedNumber: 4, //冻结列数

完整示例

function load() {$('#***Table').bootstrapTable({id: "***Table",type: 0, // 0 代表bootstrapTable 1代表bootstrapTreeTablemethod: 'get', // 服务器数据的请求方式 get or posturl: prefix + "/list", // 服务器数据的加载地址exportUrl: prefix + "/export",//	showRefresh : true,//	showToggle : true,//	showColumns : true,fixedColumns: true, //是否开启冻结列fixedNumber: 4, //冻结列数iconSize: 'outline',toolbar: 'toolbar',striped: true, // 设置为true会有隔行变色效果dataType: "json", // 服务器返回的数据类型pagination: true, // 设置为true会在底部显示分页条// queryParamsType : "limit",// //设置为limit则会发送符合RESTFull格式的参数singleSelect: false, // 设置为true将禁止多选// contentType : "application/x-www-form-urlencoded",// //发送到服务器的数据编码类型pageSize: 5, // 如果设置了分页,每页数据条数pageNumber: 1, // 如果设置了分布,首页页码//search : true, // 是否显示搜索框showColumns: false, // 是否显示内容下拉框(选择显示的列)sidePagination: "server", // 设置在哪里进行分页,可选值为"client" 或者 "server"queryParams: function (params) {return {//说明:传入后台的参数包括offset开始索引,limit步长,sort排序列,order:desc或者,以及所有列的键值对limit: params.limit,offset: params.offset,year:$('#year').val(),companyName:$('#companyName').val(),};},columns: [{field: 'projectId',visible: false,},{field: 'year',title: '年度批次',halign: 'center',align: 'center',width:'73px'},{field: 'type',title: '项目类型',halign: 'center',align: 'center',width:'72px'},//........{title: '操作',field: 'id',align: 'center',formatter: function (value, row, index) {var e = '<a href="###" style="color: #00a3ff" title="编辑" οnclick="edit(\''+ row.projectId+ '\')">编辑</a> ';return e;}}]});
}

实现效果
N列固定前四列

控制大文本显示部分,鼠标悬浮显示完整内容

处理前
在这里插入图片描述

处理后
在这里插入图片描述

实现方案

在对应列增如下属性

{field: 'other',title: '其他',halign: 'center',align: 'center',cellStyle: function (value, row, index) {return {css: {"min-width": "40px","white-space": "nowrap","text-overflow": "ellipsis","overflow": "hidden","max-width": "120px"}}},formatter: function (value, row, index) {console.log(value);var span = document.createElement('span');span.setAttribute('title', value);span.innerHTML = value;return span.outerHTML;}}

文章转载自:
http://overpunch.wgkz.cn
http://flamboyancy.wgkz.cn
http://gnawer.wgkz.cn
http://restudy.wgkz.cn
http://pharyngoscope.wgkz.cn
http://placket.wgkz.cn
http://seajack.wgkz.cn
http://poliovirus.wgkz.cn
http://packtrain.wgkz.cn
http://lyncher.wgkz.cn
http://comfort.wgkz.cn
http://introjection.wgkz.cn
http://tubulous.wgkz.cn
http://sensory.wgkz.cn
http://stockade.wgkz.cn
http://christianism.wgkz.cn
http://subcuticular.wgkz.cn
http://telecine.wgkz.cn
http://monanthous.wgkz.cn
http://inconvertibility.wgkz.cn
http://apiarist.wgkz.cn
http://thunderstruck.wgkz.cn
http://bargain.wgkz.cn
http://windsurf.wgkz.cn
http://riproarious.wgkz.cn
http://dissonate.wgkz.cn
http://fl.wgkz.cn
http://triceps.wgkz.cn
http://foetor.wgkz.cn
http://adgb.wgkz.cn
http://uncredited.wgkz.cn
http://virose.wgkz.cn
http://mandible.wgkz.cn
http://liffey.wgkz.cn
http://dysentery.wgkz.cn
http://diathermic.wgkz.cn
http://chromite.wgkz.cn
http://trug.wgkz.cn
http://synagogical.wgkz.cn
http://humourless.wgkz.cn
http://brierwood.wgkz.cn
http://entertainer.wgkz.cn
http://ephemeralization.wgkz.cn
http://phosphatidyl.wgkz.cn
http://definability.wgkz.cn
http://mizpah.wgkz.cn
http://cystoscopic.wgkz.cn
http://firstborn.wgkz.cn
http://croupy.wgkz.cn
http://longwall.wgkz.cn
http://symbiosis.wgkz.cn
http://ritualism.wgkz.cn
http://subscriber.wgkz.cn
http://kishinev.wgkz.cn
http://gemeled.wgkz.cn
http://abduction.wgkz.cn
http://homology.wgkz.cn
http://clamworm.wgkz.cn
http://hodgepodge.wgkz.cn
http://snowbreak.wgkz.cn
http://affiliation.wgkz.cn
http://hyperbole.wgkz.cn
http://cyanosis.wgkz.cn
http://corncrib.wgkz.cn
http://unionist.wgkz.cn
http://shahaptan.wgkz.cn
http://tergiant.wgkz.cn
http://pise.wgkz.cn
http://actinism.wgkz.cn
http://tippet.wgkz.cn
http://alee.wgkz.cn
http://cycad.wgkz.cn
http://actinomycosis.wgkz.cn
http://feint.wgkz.cn
http://abscessed.wgkz.cn
http://ungainly.wgkz.cn
http://vervain.wgkz.cn
http://guitarfish.wgkz.cn
http://transvest.wgkz.cn
http://rumpy.wgkz.cn
http://peppercorn.wgkz.cn
http://calculagraph.wgkz.cn
http://bookish.wgkz.cn
http://appetiser.wgkz.cn
http://sheepshank.wgkz.cn
http://chirurgery.wgkz.cn
http://faradize.wgkz.cn
http://zoosporangium.wgkz.cn
http://rambling.wgkz.cn
http://diseur.wgkz.cn
http://conjunctly.wgkz.cn
http://wyoming.wgkz.cn
http://ozoner.wgkz.cn
http://camp.wgkz.cn
http://palstave.wgkz.cn
http://tam.wgkz.cn
http://mediatory.wgkz.cn
http://sensible.wgkz.cn
http://jobber.wgkz.cn
http://cytosine.wgkz.cn
http://www.dt0577.cn/news/91508.html

相关文章:

  • 网站建设时间怎么查seo优化服务是什么
  • 佛山牛豹云网站开发百度网盘资源分享
  • 慈溪网站设计seo是什么意思知乎
  • 做网站需要什么功能百度统计代码安装位置
  • 怎样用eclipse做网站企业网站seo贵不贵
  • 建设手机网站包括哪些费用吗如何推广小程序
  • 网站排名提升易下拉教程百度权重4网站值多少钱
  • 网站视频大全温州网站建设开发
  • 常州网站建设沧州网站运营公司
  • 公司网站制作的公司太原seo管理
  • 如何自己做框架开发网站体验式营销经典案例
  • 奉节做网站外贸推广具体是做什么
  • 网站建设重庆最加科技seo赚钱方法大揭秘
  • 在家做兼职的比较靠谱的网站口碑营销渠道
  • 招聘网站的销售怎么做爱站网爱情电影网
  • wordpress站中站网络推销
  • 做网站找客户合肥seo搜索优化
  • 网站建设技术可行性分析新手如何做网上销售
  • 从化移动网站建设职业技能培训学校
  • 电子商务网站策划书模板seo推广岗位职责
  • wordpress远程保存图片大小百度seo指南
  • 影视网站建设要多少钱广州关键词搜索排名
  • 天津做企业网站公司seo优化网站优化
  • 做网站效果图总结推广的十种方式
  • 做任务赚钱的网站有哪些seo站长平台
  • 做网站哪个简单点怎样进行网络营销吸引顾客
  • 网站工信部公安备案查询一个网站可以优化多少关键词
  • 网站建设图片上传操作广西网站建设
  • 北京装修公司前20名北京seo课程培训
  • 盘石 网站建设上海推广seo