谁帮忙把下面的表格改成div+css格式?谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/27 13:49:19
<table width="968" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="630" align="center">
left
</td>

<td width="338" align="right">
Right

</td>
</tr>
</table>

下面是完整的,复制粘贴后测试看看吧。

<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
.baidu {width: 968px;vertical-align: top; margin: 0 auto;}
.baidu_left {float: left; width: 630px; text-align: center;}
.baidu_right {float: left; width: 338px; text-align: right;}
.endline {clear: both;}
</style>
</head>

<body>
<div class="baidu">
<div class="bai