相关疑难解决方法(0)

HTML <tr>标签和位置:相对

我很久以前正在处理html写作,而FireFox存在问题.
一些tr元素的position属性设置为relative,这令人惊讶地使这些tr的边界不可见.当我删除样式时,一切正常......所以问题是:
" 位置如何:相对影响tr元素? "我无法得到它......对我而言似乎是多余的.

谢谢

编辑:

<table id="table1"  width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#cccccc"><tbody>
<tr class="header" style="position:relative;top:2 px;">
    <th>sdf</th>
    <th>sdf</th>
    <th>sdf</th>
</tr>

.header {
    position:relative;
}


table#table1 {
    border-collapse: collapse;    
}

#table1 th {
    border-collapse: collapse;
    cursor: pointer;
    font-size: 8pt;
    padding: 3px;
    border-left: 1px solid #666666;
    border-right: 1px solid #666666;
    border-bottom: 1px solid #666666;
    color: #FFFFFF;
    background-color: #6685C2;
}

#table1 td {
    border-collapse: collapse;
    cursor: pointer;
    font-size: 8pt;
    padding: 3px;
    border: 1px solid #666666;
}
Run Code Online (Sandbox Code Playgroud)

html css firefox

16
推荐指数
2
解决办法
2万
查看次数

标签 统计

css ×1

firefox ×1

html ×1