当前位置:网站首页>Set colSpan invalidation for TD of table
Set colSpan invalidation for TD of table
2022-07-22 21:01:00 【checkMa】
to table Of td Set up width Invalid after inline style
Code examples and effects
When we use the following code , Will find td The width of will not follow colspan To arrange , stay td Set up width It's no use ;
<table border width="100%">
<tbody>
<tr>
<td colspan="2" ></td>
<td colspan="2" ></td>
<td colspan="2" ></td>
</tr>
<tr>
<td colspan="1" ></td>
<td colspan="2" ></td>
<td colspan="3" ></td>
</tr>
</tbody>
</table>
reason
After various checks , I found a blogger's article , About CSS Of table-layout The usage of attribute , Turned out to be table The layout algorithm of needs to be redefined ; So change the code , The solution is as follows
<table border width="100%">
<tbody>
<tr>
<td colspan="2" ></td>
<td colspan="2" ></td>
<td colspan="2" ></td>
</tr>
<tr>
<td colspan="1" ></td>
<td colspan="2" ></td>
<td colspan="3" ></td>
</tr>
</tbody>
</table>
边栏推荐
猜你喜欢
Performance perception of transistor arrays in analog circuits common centroid layout and wiring align
使用简单的js实现圆弧布局
Pycharm settings
微信小程序综合案例实践1
Multithread 01 -- create thread and thread state
微信小程序综合案例实践2
面试官:生成订单30分钟未支付,则自动取消,该怎么实现?
Django中使用Mysql数据库
Multithreading 05 -- reentrantlock principle
(7) Vulhub column: log4j Remote Code Execution Vulnerability recurrence
随机推荐
Highly configurable and scalable spiral capacitor design for high-density or high-precision applications
Bash变量--环境变量
微信小程序Cannot read property 'setData' of null錯誤
第二章:给项目配置数据源,redis,security,swagger等工具jar
Airtest conducts webui automated testing (selenium)
线程池02--源码
BUUCTF闯关日记--[网鼎杯 2020 青龙组]AreUSerialz
面向高性能计算场景的存储系统解决方案
多线程04--线程的有序性
测试用例设计
Performance perception of transistor arrays in analog circuits common centroid layout and wiring align
BUUCTF闯关日记--[MRCTF2020]Ezpop1
RPM包管理—YUM在线管理--YUM命令
网络基础知识
Introduction to dynamic planning
JVM principle and performance tuning
第六章:easyCode代码生成器
BUUCTF闯关日记--[SUCTF 2019]CheckIn1()
Problems and solutions of using libsvm-3.23 in matlab2017a environment
结构体和联合体