左边导航树,右面页面的问题
2016-07-01 20:57
281 查看
1、使用table标签的问题
代码:<TABLE border=0 height="100%" align=left> <TR> <TD width=260px height="200px" align=left valign=top style="BORDER-RIGHT: #999999 1px dashed"> <ul id="tree" class="ztree" style="width:260px; overflow:auto;"></ul> </TD> <TD> <td> <iframe name="ifrm" id="ifrm" width="700px" height="160px" allowtransparency="true" style="" frameborder="0" src="" scrolling="no"/>您的浏览器不支持iframe!</iframe> </td> </TD> </TR> </TABLE>
问题:见下面的图片
左右不对齐,暂时没找到table标签解决方法,如有人知道请联系我。感谢!
2、解决对齐的方法
不使用table标签,改用div标签。代码如下:<div border=0 height="100%" align=left style="overflow:auto"> <div width=260px align=left valign=top style=" float:left;BORDER-RIGHT: #999999 1px dashed"> <ul id="tree" class="ztree" style="width:260px; overflow:auto;"></ul> </div> <iframe name="ifrm" id="ifrm" width="70%" height="216px" allowtransparency="true" frameborder="0" src="" scrolling="no"></iframe> </div>
效果图如下:
相关文章推荐
- 栈 求解迷宫
- Cookie的增删改查
- Python基础系列----字典、基本语句
- CentOS 下安装 Hexo 博客
- 走遍世界 —— 亚洲
- Android Validation
- 局部刷新的js分页插件
- "MD5"加密算法全解析
- 密码学(公私匙加密)--逻辑思维题
- gulp 入门教程
- Android多线程文件下载
- js标准化价钱
- Unity5.2在VS2015中调试
- 在eclipse中使用Aspectj
- 使用Aspect来对访问方法进行预处理和后处理
- 仙侠情思——殊途
- eclipse中svn的各种图标详解
- Linux-Hadoop 安装和操作指南
- FindContours的算法原理
- microstation level3 02