Html 正在向下移动一个像素的内联样式表单元格
我使用表格进行语义标记,但将其样式设置为类似于多行列表,左侧有图标: 但是,内联样式的单元格显示在图标下方一个像素处。我如何防止这种情况,使它们从相同的y位置开始 HTML:Html 正在向下移动一个像素的内联样式表单元格,html,css,html-table,cell,Html,Css,Html Table,Cell,我使用表格进行语义标记,但将其样式设置为类似于多行列表,左侧有图标: 但是,内联样式的单元格显示在图标下方一个像素处。我如何防止这种情况,使它们从相同的y位置开始 HTML: 刚刚更新了你的小提琴: 只需在td中添加垂直对齐:top td { display: inline; background-color: red; vertical-align:top; } 仅供参考:刚刚更新了您的小提琴: 只需在td中添加垂直对齐:top td { display: inli
刚刚更新了你的小提琴: 只需在td中添加
垂直对齐:top
td {
display: inline;
background-color: red;
vertical-align:top;
}
仅供参考:刚刚更新了您的小提琴: 只需在td中添加
垂直对齐:top
td {
display: inline;
background-color: red;
vertical-align:top;
}
仅供参考:刚刚更新了您的小提琴: 只需在td中添加
垂直对齐:top
td {
display: inline;
background-color: red;
vertical-align:top;
}
仅供参考:刚刚更新了您的小提琴: 只需在td中添加
垂直对齐:top
td {
display: inline;
background-color: red;
vertical-align:top;
}
仅供参考:您只需添加CSS属性
位置:相对和顶部:1px
:
td:first-child {
display: block;
float: left;
position: relative;
top: 1px;
}
您只需添加CSS属性位置:相对和顶部:1px
:
td:first-child {
display: block;
float: left;
position: relative;
top: 1px;
}
您只需添加CSS属性位置:相对和顶部:1px
:
td:first-child {
display: block;
float: left;
position: relative;
top: 1px;
}
您只需添加CSS属性位置:相对和顶部:1px
:
td:first-child {
display: block;
float: left;
position: relative;
top: 1px;
}
检查此项:检查此项:检查此项:检查此项: