gywenlover
1、引入js架包

  <script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>

  <script src="js/colResizable-1.6.js" type="text/javascript"></script>  (该jar包是为表格添加列宽自定义功能)

2、table页面内容
这里样式文件就随便写一个样式咯,要有边框哦!

  <table id="contentTable"
  class="">
    <thead>
      <tr>
        <th>标题</th>
        <th>类型</th>
        <th class="sort-column login_name">状态</th>
        <th class="sort-column name">查阅状态</th>
        <th>更新时间</th>
     </tbody>
  </table>

 

  4、js代码

  <script type="text/javascript">

    $(function() {

       $("table").colResizable();

     });

  </script>

 这样为你的表单加上table样式,你的表格就可以自定义拉升大小了。

4、附上官网地址

  jQuery插件来调整表列的大小


  官网地址:http://www.bacubacu.com/colresizable/

 

 colResizable-1.6插件下载地址:https://download.csdn.net/download/oranxiaoluo/10352596

 

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2021-12-09
  • 2021-10-13
  • 2021-09-25
  • 2021-07-05
  • 2021-09-07
  • 2021-08-07
  • 2019-07-05
猜你喜欢
  • 2021-10-19
  • 2021-11-29
  • 2021-08-02
  • 2021-12-15
  • 2021-12-12
  • 2021-11-29
相关资源
相似解决方案