当前位置:网站首页>The width of table is 4PX larger than that of tbody
The width of table is 4PX larger than that of tbody
2022-07-07 10:23:00 【weixin_ forty-two million one hundred and seventy-eight thousan】
table Width ratio tbody The width is large 4px, For example table Set width 1000px, but tbody The width is 996px
solve : Set up table Of border-spacing: 0; that will do , Default border-spacing: 2px;
table {
border-spacing: 0;}
border-spacing Is the border spacing attribute of the table , Set up boder-spacing: 5px 10px; Is to set the left and right spacing of table cells to 5px, The upper and lower spacing is 10px
In addition, such as setting border by 1px Of td Width is 50px Then I found out that finally td Width is 52px, Settable solution td The problem of width exceeding
td {
box-sizing: border-box;}
边栏推荐
猜你喜欢

STM32 ADC和DMA

Fiddler simulates the interface test

The story of Plato and his three disciples: how to find happiness? How to find the ideal partner?

【acwing】786. Number k

ISP、IAP、ICP、JTAG、SWD的编程特点

ArcGIS operation: converting DWG data to SHP data

1323:【例6.5】活动选择

【剑指Offer】42. 栈的压入、弹出序列

【acwing】786. 第k个数

【STM32】STM32烧录程序后SWD无法识别器件的问题解决方法
随机推荐
Advanced function learning in ES6
Postman tutorial - scripting
ES6中的函數進階學習
反射效率为什么低?
ArcGIS operation: converting DWG data to SHP data
MCU is the most popular science (ten thousand words summary, worth collecting)
Can I open a stock trading account online? Is it safe
Remote meter reading, switching on and off operation command
Study summary of postgraduate entrance examination in November
Leetcode exercise - 113 Path sum II
Use of JSON extractor originals in JMeter
Slurm资源管理与作业调度系统安装配置
1321:【例6.3】删数问题(Noip1994)
Some test points about coupon test
STM32产品介绍
Pdf document signature Guide
STM32 ADC and DMA
Why is the reflection efficiency low?
【STM32】STM32烧录程序后SWD无法识别器件的问题解决方法
Guide de signature du Code Appx