让两个 div 显示在同一行
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>标题</title>
<style type="text/css">
div{
display:inline;
}
</style>
</head>
<body>
<div>我是第一个Div</div>
<div>我是第二个Div</div>
</body>
</html>
让两个 div 显示在同一行
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>标题</title>
<style type="text/css">
div{
display:inline;
}
</style>
</head>
<body>
<div>我是第一个Div</div>
<div>我是第二个Div</div>
</body>
</html>