Bootstrap bootstrapTable如何自己设置列宽

 时间:2024-10-12 11:43:45

1、鼠标点击打开HBuilder软件,如图所示:

Bootstrap bootstrapTable如何自己设置列宽

3、新建Web项目完成之后,引入开发bootstrap相关样式等,然后在html文件中键入如下代码:<!DOCTYPE htm造婷用痃l><html> <head> <meta charset="utf-8" /> <title>Bootstrap bootstrap Table如何自己设置列宽?</title> </head><script type="text/javascript" src="js/jquery-3.3.1.min.js" ></script> <script type="text/javascript" src="js/bootstrap.min.js" ></script> <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"/> <script>$(document).ready(function(){ $("#set").click(function(){ $("#col").css("width","200px"); });});</script><style type="text/css"> td{ border-style:solid; border-width:5px; } th{ border-style:solid; border-width:5px; }</style> <body> <button id="set">设置列宽</button> <table class="table"> <caption>基本的表格布局</caption> <thead> <tr> <th>名称</th> <th id="col">城市</th> </tr> </thead> <tbody> <tr> <td>Tanmay</td> <td id="col">Bangalore</td> </tr> <tr> <td>Sachin</td> <td id="col">Mumbai</td> </tr> </tbody></table> </body></html>

Bootstrap bootstrapTable如何自己设置列宽

5、可以在浏览器中看到开始的列宽,然后点击设置列宽按钮,如图所示:

Bootstrap bootstrapTable如何自己设置列宽
  • 怎么获取配置文件的值
  • 如何离线安装firefox以及firefox离线安装包下载
  • 交换机无故重启怎么办
  • 易语言如何修改位图按钮的返回值类型
  • SAP PP如何修改计划订单的组件清单字段描述
  • 热门搜索
    关于推进海南国际旅游岛建设发展的若干意见 山东潍坊旅游景点 北极光旅游 额济纳旗旅游攻略 俄罗斯中国旅游年 花都旅游景点大全 西双版纳旅游局 上海旅游网站 旅游常识 浙江嘉兴旅游