在项目中开发的时候用的bootstrap,但是有些表格的内容

会显示的很长

那么我第一时间想到的就是 修改td或者th的width,但是我设置了 之后不起作用

于是百度找到了解决方法:

学习源头:

https://blog.csdn.net/u011233568/article/details/79199007

https://blog.csdn.net/qq_30616169/article/details/55212284?locationNum=7&fps=1

 

于是代码就是

<style>
        #tb {table-layout:fixed;}
    </style>
<table class="table table-bordered table-hover"  >
</table>
<th class="text-left" style="width: 186px;">xxx</th>

 

相关文章:

  • 2022-02-20
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案