日期:2014-05-17  浏览次数:20622 次

ie8css问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style>
* {margin:0;padding:0;}
body {width:98%;font:Verdana, Geneva, sans-serif;font-size:12px;}
.wrap{width:98%;height:300px; margin:100px auto; border:1px solid red;overflow:auto; }
.tableBox {width:1800px; margin:0 auto;}
table {table-layout:fixed;width:98%;margin:1px auto; *margin:0 auto;border-collapse:collapse; border-top:1px solid #c0c0c0;border-left:1px solid #c0c0c0;}
th,td{height:25px; *height:24px; overflow:hidden;border-bottom:1px solid #c0c0c0;border-right:1px solid #c0c0c0;}

th {background:#E2EAFE}
</style>
<body>
<div class="wrap">
        <div class="tableBox" >
            <table>
                <tr>
                    <th>1</td>
                    <th>22</td>
                    <th>333</td>
                    <th>4444</td>
                    <th>55555</td>
                    <th>666666</td>
                </tr>
                <tr class="odd">
                    <td>1111111</td>
                    <td>2222222</td>
                    <td>3333333</td>
                    <td>4444444</td>
                    <td>5555555</td>
                    <td>6666666</td>
                </tr>
                <tr>
                    <td>1111111</td>
                    <td>2222222</td>
                    <td>3333333</td>