IE 6中的HTML DIV问题 [英] HTML DIV problem in IE 6

查看:63
本文介绍了IE 6中的HTML DIV问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在IE 6中遇到div问题。
在IE 7和IE 8中工作正常


<



 



div style = "heigh t:250px; border-width:2px; border-color:#0066cc; border-style:solid; overflow:scroll" >



 



< 边框 = "3" bordercolor = "灰色" 对齐 = "右" 宽度 = "100%" id = "displayTable" >



 



< thead >



 



< tr >



 



< Th >< / Th >



 



< > 第1列 < / >



 



< > 第2列 < / >



 



< > 第3列 < / >



 



< > 第4列 < / >



 



< > 第5列 < / >

 


 


 



 



< / tr >



 



< / thead >



 



< tbody 样式 = "font-size:80%;高度:100%;溢出:滚动" 对齐 = "center" >

 



< / tbody >



 



 



< / >



 



< / div >

 



 



 



这里的问题是这里没有正确显示表格。


请给我解决方案。

谢谢

解决方案

你好,

请立即查看。

< div style =" height:250px; border-width:2px; border-color:#0066cc; border-style:solid ; overflow:auto">
   < table border =" 3" bordercolor =" grey" align =" right" width =" 100%" id =" displayTable">
   < thead >
        < tr>
                <的第i;
                & nbsp;
                < / th>
                < th>
                   第1栏
                < / th>
                < th>
                   第2栏
                < / th>
                < th>
                   第3栏
                < / th>
                < th>
                   第4栏
                < / th>
                < th>
                   第5栏
                < / th>
            < / tr>
    < / thead>
     < tbody style =" font-size:80%;身高:100%;溢出:汽车" align =" center">
        < / tbody>
    < / table>
    < / DIV>

Hi,

I have a problem with div in IE 6.
It is working fine in IE 7 and IE 8

<

 

div style="height: 250px;border-width:2px;border-color:#0066cc;border-style:solid;overflow:scroll">

 

<table border="3" bordercolor="gray" align="right" width="100%" id="displayTable">

 

<thead>

 

<tr>

 

<Th></Th>

 

<th>column 1</th>

 

<th>column 2</th>

 

<th>column 3</th>

 

<th>column 4</th>

 

<th>column 5</th>

 

 

 

 

</tr>

 

</thead>

 

<tbody style="font-size:80%;height:100%;overflow:scroll" align="center">

 

</tbody>

 

 

</table>

 

</div>

 

 

 

Problem here is the table is not displaying properly here.

please provide me the solution.

thanks

解决方案

Hi,

Please check now.

<div style="height: 250px;border-width:2px;border-color:#0066cc;border-style:solid;overflow:auto">
    <table border="3" bordercolor="gray" align="right" width="100%" id="displayTable">
    <thead>
        <tr>
                <th>
                &nbsp;
                </th>
                <th>
                    column 1
                </th>
                <th>
                    column 2
                </th>
                <th>
                    column 3
                </th>
                <th>
                    column 4
                </th>
                <th>
                    column 5
                </th>
            </tr>
    </thead>
     <tbody style="font-size: 80%; height: 100%; overflow:auto" align="center">
        </tbody>
    </table>
    </div>


这篇关于IE 6中的HTML DIV问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆