gpt4 book ai didi

html - 如何能够在没有文本的情况下显示 Table TD

转载 作者:搜寻专家 更新时间:2023-10-31 22:23:02 24 4
gpt4 key购买 nike

我的问题:如何在不使其消失的情况下将表的 TD 保留为无文本。

我使用这个 HTML 代码:

<div id="push_down"></div>

<div id="global_wrapper">
<table cellpadding="0" cellspacing="0" border="0" id="sep_table">
<tr>
<td id="side_1"></td>
<td id="main"></td>
<td id="side_2"></td>
</tr>
</table>
</div>

还有这段 CSS 代码:

html, body {
margin: 0px;
padding: 0px;
}

#push_down {
padding-top: 53px;
}
#global_wrapper {
}
#sep_table {
margin: 0px auto;
width: 100%;
}
#side_1 {
background:url(../images/navbar-bg-left.jpg) center repeat-x;
height:78px;
}
#main {
background:url(../images/navbar.jpg) center no-repeat;
height:33px;
width: 989px;
padding-top:45px;
}
#side_2 {
background:url(../images/navbar-bg-right.jpg) center repeat-x;
height:78px;
}
.navbar{
font-size:14px;
font-weight:bold;
color:#FFF;
}
.navbar a:link{
color:#FFF;
text-decoration:none;
}
.navbar a:visited{
color:#FFF;
text-decoration:none;
}
.navbar a:hover{
color:#131313;
text-decoration:none;
}
.navbar a:active{
color:#FFF;
text-decoration:none;
}

最佳答案

使用 CSS:

table {
empty-cells:show;
}

在 html 中(不是很干净):

<table>
<tr>
<td>&nbsp;</td>
</tr>
</table>

关于html - 如何能够在没有文本的情况下显示 Table TD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6828584/

24 4 0
文章推荐: node.js - meteor 错误 : EACCES: permission denied, rmdir 'build'
文章推荐: ios - 最小和最大缩放 Xcode Swift
文章推荐: node.js - socket.io 的可扩展架构
文章推荐: javascript - 标准化 <input>、