css笔记 css用法:

前端框架:AdminLTE  https://almsaeedstudio.com/themes/AdminLTE/index2.html

CSS学习教程: http://www.divcss5.com/rumen/r74.shtml

div 加滚动条: 父类定义高度和设置滚动属性,当子类内容高度超过父类时就会出现滚动条:height: 400px;overflow-x:auto;

把两个div横向排列(div不换行显示):
<div>
     <div class="company_attest_left" style="display: inline-block; width: 49%;float:left"></div>
    <div class="company_attest_right" style="width:49%;display:inline-block;">
</div>

列表显示加省略号(...):
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
 width: 100px;

 

posted on 2016-10-12 16:28  andydaopeng  阅读(156)  评论(0编辑  收藏  举报

导航