div动态元素自适应高度
2016-02-25 17:44
381 查看
<div class="tpsetbox" ng-repeat="item in items" > <div class="tpsettitbox"><span ng-bind="item.BuildName"></span>-<span ng-bind="item.PeriodName"></span></div> <ul class="tpsetbuildingul"> <li ng-repeat="it in item.Building" class="col-xs-3 "> <span ng-click="checkBuildingStatus($parent.$index,$index,it.Status)" style="position:relative;"> <label ng-bind="it.BuildingName"></label> <i class="fa fa-chevron-down buildcontrol"></i> <span class="setBuildStatus status0 hide stat0{{$parent.$index}}{{$index}} ">已推盘</span> <span class="setBuildStatus status1 hide stat1{{$parent.$index}}{{$index}} ">未推盘</span> <span class="setBuildStatus status2 hide stat2{{$parent.$index}}{{$index}} ">不可推</span> </span> </li> </ul> <div style="font: 0px/0px sans-serif;clear: both;display: block"> </div> </div>
以上是一种方法,在元素中间增加一个元素
<div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>
还有一种方法是:
.tpsetbox{ min-height:50px; height:100%;overflow:hidden; }
相关文章推荐
- 20个JS优化代码技巧
- 彻底理解js中this的指向,不必硬背。
- Java 网络编程(四) InetAddress类
- js对数组按顺序排序
- 【云计算】docker前世今生
- android简单实例--------普通菜单optionMenu,上下文菜单ContextMenu,弹出式菜单的使用PopuMenu(三)
- OpenCV 剪切矩形区域
- 恩布企业IM PC端,私有云服务端发布 1.19 版本
- js观察者模式简单实现
- 【JavaWeb Structs2学习】OGNL表达式
- Android开源项目分包方式学习(eoe、oschina、github)
- Android-通知Notification全解析
- Solr查询详解
- 【原】创建Hive表,分号分隔符“;”引起的异常
- Xcode7下新建XMPP项目导入XMPPFramework框架详细步骤
- eclipse断点调试
- 编程常见错误——循环中进行有符号数和无符号数的比较
- iOS开发多线程篇---atomic nonatomic区别
- web服务器 应用 服务器
- I/O复用——epoll系列系统调用