怎么在这个DIV布局的右边加一下div,我要在上面放一个按钮。
--原---
<div class= "favMenu " id= "aMenu ">
<div class= "subItem " target= "mainPage " title= "论坛 " > 论坛 </div>
<div class= "subItem " target= "mainPage " title= "操作指南 " > 操作指南 </div>
<div class= "subItem " target= "mainPage " title= "文件下载 " > 文件下载 </div>
<div class= "subItem " target= "mainPage " title= "修改密码 " > 修改密码 </div>
--现在想实现类似下面的效果-
<table> <tr> <td>
<div class= "favMenu " id= "aMenu ">
<div class= "subItem " target= "mainPage " title= "论坛 " > 论坛 </div>
<div class= "subItem " target= "mainPage " title= "操作指南 " > 操作指南 </div>
<div class= "subItem " target= "mainPage " title= "文件下载 " > 文件下载 </div>
<div class= "subItem " target= "mainPage " title= "修改密码 " > 修改密码 </div>
</td> <td> 加我想加的东西 </td> </tr> <table>
---
要用DIV实现,因为如果用table的话。好像我原来页面的就变形了。
------解决方案-------------------- <div class= "favMenu " id= "aMenu ">
<div class=新的 向左浮动>
<div class= "subItem " target= "mainPage " title= "论坛 " > 论坛 </div>
<div class= "subItem " target= "mainPage " title= "操作指南 " > 操作指南 </div>
<div class= "subItem " target= "mainPage " title= "文件下载 " > 文件下载 </div>
<div class= "subItem " target= "mainPage " title= "修改密码 " > 修改密码 </div>
</div>
<div class=新的 向左浮动> 加入新的东西 </div>
</div>
注意控制边框宽度
我的意见而已