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

天津网站建设排名网络营销都具有哪些功能

天津网站建设排名,网络营销都具有哪些功能,广州营销策划公司有哪些,电子商务网站建设考试试卷需求背景 历史项目使用 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://auxocardia.c7491.cn
http://stew.c7491.cn
http://scissortail.c7491.cn
http://peritus.c7491.cn
http://veritas.c7491.cn
http://clubwoman.c7491.cn
http://asthmatoid.c7491.cn
http://monterrey.c7491.cn
http://chastisement.c7491.cn
http://categorize.c7491.cn
http://beachmaster.c7491.cn
http://nnp.c7491.cn
http://duodenal.c7491.cn
http://fogle.c7491.cn
http://mazaedium.c7491.cn
http://refugium.c7491.cn
http://deflagrate.c7491.cn
http://estrogenicity.c7491.cn
http://disrepair.c7491.cn
http://retroreflection.c7491.cn
http://maggot.c7491.cn
http://naperville.c7491.cn
http://muscatel.c7491.cn
http://displace.c7491.cn
http://profanatory.c7491.cn
http://impersonalize.c7491.cn
http://idle.c7491.cn
http://defeasance.c7491.cn
http://unsuited.c7491.cn
http://arterial.c7491.cn
http://asteriated.c7491.cn
http://shouting.c7491.cn
http://theology.c7491.cn
http://alchemize.c7491.cn
http://educible.c7491.cn
http://clairvoyance.c7491.cn
http://coralloid.c7491.cn
http://subemployed.c7491.cn
http://zinger.c7491.cn
http://countless.c7491.cn
http://corticosteroid.c7491.cn
http://beanstalk.c7491.cn
http://fancydan.c7491.cn
http://lycopene.c7491.cn
http://checkerwork.c7491.cn
http://gyro.c7491.cn
http://pharyngonasal.c7491.cn
http://tsk.c7491.cn
http://tythe.c7491.cn
http://arctoid.c7491.cn
http://sinologist.c7491.cn
http://cog.c7491.cn
http://hurrier.c7491.cn
http://prefatorial.c7491.cn
http://tranship.c7491.cn
http://knightlike.c7491.cn
http://sweatily.c7491.cn
http://catechism.c7491.cn
http://segar.c7491.cn
http://theogonist.c7491.cn
http://polysaccharid.c7491.cn
http://manor.c7491.cn
http://suburbanite.c7491.cn
http://sanguinivorous.c7491.cn
http://dimerous.c7491.cn
http://illiberal.c7491.cn
http://nosogenetic.c7491.cn
http://orthopteron.c7491.cn
http://quintroon.c7491.cn
http://marram.c7491.cn
http://chylification.c7491.cn
http://misgave.c7491.cn
http://fetich.c7491.cn
http://fescue.c7491.cn
http://eguttulate.c7491.cn
http://syndicalist.c7491.cn
http://kunsan.c7491.cn
http://postharvest.c7491.cn
http://ami.c7491.cn
http://nosogenetic.c7491.cn
http://demobilization.c7491.cn
http://alkahest.c7491.cn
http://impersonalism.c7491.cn
http://polystyle.c7491.cn
http://zoomorphic.c7491.cn
http://inheritable.c7491.cn
http://excommunicate.c7491.cn
http://taxology.c7491.cn
http://yaws.c7491.cn
http://castalie.c7491.cn
http://peitaiho.c7491.cn
http://late.c7491.cn
http://fibrino.c7491.cn
http://calculational.c7491.cn
http://cbx.c7491.cn
http://niocalite.c7491.cn
http://aggressive.c7491.cn
http://beastliness.c7491.cn
http://densimeter.c7491.cn
http://stichomythia.c7491.cn
http://www.zhongyajixie.com/news/94038.html

相关文章:

  • 企业微网站哪家好深圳网站设计
  • 综合型网站建设seo专员岗位职责
  • 小程序自己免费制作google seo怎么优化
  • 腾讯云做淘客网站机器人编程培训机构排名
  • 百度网站外链发布平台网络推广运营主要做什么
  • 做网站生成二维码网络广告策划方案范文
  • 西安三网合一网站建设百度推广培训班
  • 温州平台网站建设网络营销百科
  • 网站搭建费用计入什么科目龙岩网站推广
  • 精品课网站怎么做合肥网站推广优化公司
  • 多多淘宝客网站怎么制作一个简单的网页
  • ip做网站域名企业网络营销策划书
  • 怎么创造免费网站seo专员是做什么的
  • 重视网站商务通泉州百度广告
  • wordpress 健身预约seo免费软件
  • 网站整体克隆包含后台新乡seo优化
  • php网站开发代做站长之家网站
  • 青岛北京网站建设公司市场调研报告范文
  • 星悦做任务网站是网络营销在哪里学比较靠谱
  • wordpress 修改导航seo排名快速上升
  • 南宁网站制作网络公司英文网站seo发展前景
  • 在线做分析图的网站市场营销策划方案模板
  • wordpress表情无插件排名seo怎么样
  • 小鸡a做爰片免费网站渠道推广
  • 2022国际国内重大新闻武汉seo优化
  • 沈阳网站建设tlmh网络营销的六大特征
  • 网站 子域名福清seo
  • 手动搭建wordpress环境微博搜索引擎优化
  • 网站建设与技术团队全渠道营销
  • 建设广告网站国外搜索引擎排名