我试图在页面右侧浮动一个容器.在左边是很多表,我需要是100%的宽度.我想让他们一直延伸到右边的浮动元素.当右边的那个元素我希望表扩展到页面的末尾.
除IE之外,每个浏览器都很好用.在IE中,所有表都显示在右侧的浮动元素下方.我知道有一个解决方案溢出隐藏在IE中,但我无法让它工作.
下面的代码
<head> <style type="text/css"> .container{margin:0 auto; min-width:1000px; max-width:1200px;} .sidebar{float:right;width:300px;margin-left:5px;} .tholder{overflow:hidden;} </style> </head> <div class="container"> <div class="sidebar"> <img src="dsfd.jpg" heigh="600" width="295"> </div> <div class="tholder"> <Table width="100%" border="1"><tr><td>Text</td></tr></table> </div> <div class="tholder"> <Table width="100%" border="1"><tr><td>Test goes here</td></tr></table> </div> <div class="tholder"> <Table width="100%" border="1"><tr><td>text</td></tr></table> </div> </div>
解决方法
原文地址:https://www.jb51.cc/html/224486.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。