jq 表格自动加入样式,以及清除其他乱七八糟的属性,
2022-10-31 17:57:27
客户有时候直接从wrod pdf里面复制过来的表格。有一些乱七八糟的标签和样式,倒是很难调好,用下面方式去除。然后加入自己想要的样式。 <script type="text/javascript"> $(".list_box table").addClass("table table-striped table-hover table-bordered"); $('.list_box table').removeAttr('width').removeAttr('height').removeAttr('style'); $('.list_box tr').removeAttr('width').removeAttr('height').removeAttr('style').removeAttr('class'); $('.list_box td').removeAttr('width').removeAttr('height').removeAttr('style').removeAttr('class'); </script>
【责任编辑:超级管理员】
关键字:
html5 video 去除下载和画中画 和全屏按钮 html css 解决DPI=125% 网站放大网页图片的问题最新文章
2021-05-10 09:29
- 取消pbootcms 首页加入了?参数后 301重定向问题
- pbootcms url不允许带其他参数解决办法,带参数出现404页面,取消后缀参数过滤安全功能
- dede 电脑端和手机端首页同步生成方法,
- excel表格导入access中不换行解决办法-
- dede完美上下篇 英文版替换标签 dede:prenext 中英
- dede中英文网站栏目条调用方法
- dede双语站 面包导航{dede:field name='position'}
- PS: 无法完成请求,因为某种原因阻止文本引擎进行
- dede企业网站常见左侧固定大小类二级菜单调用代码
- 栏目页dede:channelartlist调用下级子类并dede:arcl
- dede:channelartlis 判断是否有子类栏目
- 更换织梦后台图集上传flash插件为layui上传模块
相关文章
2021-05-10 09:29