小编Jas*_*3r_的帖子

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

我的问题: 我如何在没有文字的情况下将表格保留在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>
Run Code Online (Sandbox Code Playgroud)

这个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; …
Run Code Online (Sandbox Code Playgroud)

html css html-table

3
推荐指数
1
解决办法
3323
查看次数

标签 统计

css ×1

html ×1

html-table ×1