首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >可在不同浏览器中滚动的GridView

可在不同浏览器中滚动的GridView
EN

Stack Overflow用户
提问于 2013-01-08 19:53:39
回答 2查看 152关注 0票数 0

我创建了一个可滚动的网格视图。所以我创建了一个表格,它是网格标题的副本。我给每个带有像素的元素赋予宽度属性。但它在不同的浏览器中工作方式不同。感谢您的帮助。

这是Grid header的标记。

代码语言:javascript
运行
复制
<table  cellpadding="0" cellspacing="0">
            <tr>
                <th width="26px">
                </th>
                <th width="152px">
                    Sosial sığorta nömrəsi
                </th>
                <th width="122px">
                    Soyadı
                </th>
                <th width="121px">
                    Adı
                </th>
                <th width="120px">
                    Atasının adı
                </th>
                <th width="50px">
                    Cinsi
                </th>
                <th width="100px">
                    Doğum tarixi
                </th>
                <th width="122px">
                    Uçota düşmə tarixi
                </th>
                <th width="102px">
                    SUN (köhnə)
                </th>
                <th width="150px">
                    Sığorta edənin VÖEN-i
                </th>
                <th width="102px">
                    SUN
                </th>
                <th width="102px">
                    Ölüm tarixi
                </th>
            </tr>
        </table>
EN

Stack Overflow用户

回答已采纳

发布于 2013-01-08 20:00:16

而不是创建两个表,一个用于标题,另一个用于数据-只需创建一个表…

下面这样的代码应该让所有列的宽度都正确:

代码语言:javascript
运行
复制
<table  cellpadding="0" cellspacing="0">
        <tr>
            <th width="26px">
            </th>
            <th width="152px">
                Sosial sığorta nömrəsi
            </th>
           .....
            <th width="102px">
                Ölüm tarixi
            </th>
        </tr>
        <tr> <!-- Enter data here -->
        </tr>
        <tr> <!-- Enter data here -->
        </tr>
    </table>
票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14214375

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档