当前位置:网站首页>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;}
边栏推荐
猜你喜欢
Remote meter reading, switching on and off operation command
ArcGIS operation: batch modify attribute table
The method of word automatically generating directory
[second on] [jeecgboot] modify paging parameters
Several schemes of building hardware communication technology of Internet of things
ISP、IAP、ICP、JTAG、SWD的编程特点
Leetcode exercise - 113 Path sum II
STM32中AHB总线_APB2总线_APB1总线这些是什么
Serial communication relay Modbus communication host computer debugging software tool project development case
Fiddler break point
随机推荐
Prototype object in ES6
IIC基本知识
P1223 排队接水/1319:【例6.1】排队接水
Google colab loads Google drive (Google drive is used in Google colab)
反射效率为什么低?
ArcGIS operation: batch modify attribute table
Study summary of postgraduate entrance examination in October
Programming features of ISP, IAP, ICP, JTAG and SWD
ORM -- logical relation and & or; Sort operation, update record operation, delete record operation
01 use function to approximate cosine function (15 points)
SolidWorks工程图中添加中心线和中心符号线的办法
Differences between MCU and MPU
Factorial implementation of large integer classes
ES6中的函數進階學習
ISP、IAP、ICP、JTAG、SWD的编程特点
ORM -- grouping query, aggregation query, query set queryset object properties
How to cancel automatic saving of changes in sqlyog database
Postman interface test II
JMeter loop controller and CSV data file settings are used together
Study summary of postgraduate entrance examination in August