可以将CSS直接写进DIV里

<div id="box3" style=" background:#eeef;width: 250px;height:250px;float:left;">
    <style></style>
</div>

一个div靠在另一个div左边

<div id="box3" style=" float:left;">   
</div>   
复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>tulater_webBroker全功能展示</title>
</head>
<body bgcolor="#ababab"  >
 <div id="all"  >
<!-----------------------------静态 表格------------------------------>
    <div id="box1" style="background: #eee;width:1100px;height:100px;">
<style>
    table {
        width: 400px;
        margin: 0 auto;
        border: 1px solid #000000;
        border-collapse: collapse;    }    
    th,    td {
        border: 1px solid #000000;
        text-align: center;    }
</style>
<table border="1">
    <tr>     <th>第一列</th>        <th>二列表头</th>
    </tr>
    <tr>     <td><a target="_blank" href="http://www.cnblogs.com/tulater">涂磊的小作</a></td>        <td>row 1, cell 2</td>
    </tr>
    <tr>     <td>row 2, cell 1</td>        <td>row 2, cell 2</td>
    </tr>
    <tr>     <td>row 3, cell 1</td>        <td><a target="_blank" href="https://www.cnblogs.com/tulater/p/18519255">实体书</a></td>
    </tr>
</table>
</div>
<!----------------------------------------------------->

<!----------------------------文件  上传------------------------------>
    <div id="box2" style=" background:#eee1;width: 250px;height:250px;float:left;">
&nbsp;&nbsp;<font color="#ff0000">文件  上传</font><br>
         <form   action="upload" method="post" enctype="multipart/form-data">
           <input type="file" size="60" name="myfile">
           <input type="text" size="10"  >
           <input type="submit" value="上传">
        </form>
   </div>

<!---------------------------------中间 间隔------------------>
   <div id="temp1" style=" background:white;width: 20px;height:250px;float:left;">
   </div>
<!----------------------------成语 查询------------------------------>
    <div id="box3"  style=" background:#eeef;width: 250px;height:250px;float:left;">
&nbsp;&nbsp;<font color="#ff0000">成语 查询</font><br>
       <form   action="upload" method="post">     
          <input type="text" size="30"   name="html" >
         <input type="submit" value="查询">
       </form>
     </div>
<!----------------------------------------------------->
<!----------------------------文件  上传------------------------------>
    <div id="box2" style=" background:#eee1;width: 250px;height:250px;">
&nbsp;&nbsp;文件  上传<br>
         <form   action="upload" method="post" enctype="multipart/form-data">
           <input type="file" size="60" name="myfile">
           <input type="text" size="10"  >
           <input type="submit" value="上传">
        </form>
   </div>

<!----------------------------------------------------->
 </div>
</body>
</html>
复制代码