一定要有dtd声明...兼容各浏览器 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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>test</title>
<style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
<style>
#fcart {
width: 125px;
background-color: #EEE;
color: #333;
border: 1px solid black;
padding: 0 10px 10px 10px;
left: 1000px;
z-index: 1;
display:block;
top:30px;
position:fixed;
}
width: 125px;
background-color: #EEE;
color: #333;
border: 1px solid black;
padding: 0 10px 10px 10px;
left: 1000px;
z-index: 1;
display:block;
top:30px;
position:fixed;
}
</style>
</head>
<body>
<div id="fcart" align="center">
<table>
<thead bgColor="red">
<tr><td>标题一</td><td>标题二</td></tr>
</thead>
</table>
</div>
<table border="1" align="center" id="table2">
<thead bgColor="red">
<tr><td>标题一</td><td>标题二</td></tr>
</thead>
<tbody>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
</tbody>
</table>
<div id="fcart" align="center">
<table>
<thead bgColor="red">
<tr><td>标题一</td><td>标题二</td></tr>
</thead>
</table>
</div>
<table border="1" align="center" id="table2">
<thead bgColor="red">
<tr><td>标题一</td><td>标题二</td></tr>
</thead>
<tbody>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
<tr><td>dddd</td><td>dddd</td></tr>
</tbody>
</table>
</body>
</html>