css - 表格中的第一条记录与 IE 中的表格标题重叠

标签 css grails gsp

创建了一个在 IE6,7 中工作正常但在 FF 中标题隐藏第一个数据行的表。

<g:if test="${params.history!=null}">
<div style="width:791px;padding-bottom:10px;overflow-y:auto;${(lstDNCallEntries.size()>0)?'height:100px':''}">
<table class="table">
<thead style="position: absolute;">
 <% params=params.findAll{ k,v -> k != 'sort'} %>
<td class="certify_head" width="87" style="text-align: center">title</td>
<td class="certify_head" width="89" style="text-align: center" >action</td>
            <td class="certify_head" width="66" style="text-align: center" >list</td>
            <td class="certify_head" width="118" style="text-align: center" >selection</td>
            <td class="certify_head" width="110" style="text-align: center" >source</td>
            <td class="certify_head" width="64" style="text-align: center" >${message(code:'phoneoptoutgranularity.gsp~title.user')}</td>
            <td class="certify_head" width="82" style="text-align: center" >Office</td>
            <td class="certify_head" width="90" style="text-align: center" >Effective Date</td>
        </thead>
        <tbody class="scrollContent">
            <g:if test="${lstDNCallEntries.size() > 0}">
                <g:each in="${lstDNCallEntries}" var="phoneHistory" status="i">
                    <tr class="${(i % 2) == 0 ? 'normalRow' : 'alternateRow'}"
                            onMouseOver="this.style.backgroundColor='#ffffd9'"
                            onMouseOut="this.style.backgroundColor=''">
                        <td width="90" align="center" valign="center">${phoneHistory.date}</td>
                        <td width="92" valign="center" style="font: normal 12px Arial, Helvetica, sans-serif;">${phoneHistory.action}</td>
                        <td width="71" align="center" valign="center">${phoneHistory.list}</td>
                        <td width="122" align="center" valign="center">${phoneHistory.preferencekey}</td>
                        <td width="110" align="center" valign="center">${phoneHistory.source}</td>
                        <td width="69" align="center" valign="center">${phoneHistory.user}</td>
                        <td width="85" align="center" valign="center">${phoneHistory.office}</td>
                        <td width="90" align="center" valign="center">${phoneHistory.effectiveDate}</td>
                    </tr>
                </g:each>
            </g:if>
            <g:else>
                <tr>
                    <b>
                    <td colspan="7" width="770" align="center"><b><g:message
                        code="phoneoptoutgranularity.gsp~historydetails" /></b></td>
                    </b>
                </tr>
            </g:else>
        </tbody>
    </table>
    </div>
</g:if> 

请帮助我可以修改的地方。

-ss

最佳答案

看起来你错过了 <tr>在你的第一行。

关于css - 表格中的第一条记录与 IE 中的表格标题重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/829943/

相关文章:

grails - 将 init 逻辑外部化为外部文件

grails - 用 grails 开发 web 应用程序 - 不知道它是如何工作的

unit-testing - 在Grails 2中使用build-test-data插件

jquery - Grails View 渲染。渲染GSP还是使用主干+模板?

spring-mvc - 普通Spring MVC中的GSP-AST转换不适用于taglib

html - 为什么 <button/> 不适用 -webkit-appearance : button with bootstrap

jquery - Lightgallery 之前的预加载器,使用 Imageloaded 的同位素

javascript - 从JavaScript V.S GSP调用Grails操作

html - 如何触发 HTML (SVG) 中的底层悬停事件?

html - 使用 CSS 移动前景图像