div+css 如何让两个查询结果并排显示?

来源:百度知道 编辑:UC知道 时间:2024/06/04 06:22:19
我想让两个查询结果信息并排显示怎么做? 我以前都是先插入一行两列的表格在两个表格内放置不同的查询条件. 不用table只用div+css如何才能做到呢?请高手指教!

<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">
body{
font-size:12px;
margin:auto 0px auto 0px;
padding:0px;
text-align:center;
}
#container{
margin:0px;
padding:0px;
width:200px;
height:24px;
position:absolute;
}
#one,#two{
margin:0px;
padding:0px;
float:left;
width:98px;
height:22px;
line-height:22px;
border:1px solid #663333;
}
</style>
</head>

<body>
<div id="container">
<div id="one" style="border-right:none;">查询结果一</div>
<div id="two">查询结果二</div>
<