css样式

1.滑动条样式

display:block;
overflow:auto;
max-height:200px;

2.希望table能出现滑动的效果

<div class="fileList">
<table id="xxx" cellpadding="0" cellspacing="0"></table>
</div>

在这里插入图片描述

.fileList{
    margin-bottom: 40px;
    max-height: 260px;
    overflow: auto;
    display: block;
    width: 100%;
}

3.flex布局两端对齐,即:两端无空格

                <c:if test="${dbInfoList.size() <= 5}">
                    <ul class="test_range range_spaceMid">
                    <c:forEach items="${dbInfoList}" var="dbInfo" varStatus="flag">
                    <li data="${dbInfo.id}">${dbInfo.dbname}</li>
                    </c:forEach>
                    </ul>
                </c:if>
   ul{
    display: flex;
    flex-wrap: wrap;
   }
   .range_spaceMid{justify-content: space-between;}
   .range_spaceMid li:last-child{margin-right: 0px;}

4.让div中的文字两端对齐

text-align: justify;

5.超出部分省略号

{
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
}

6.图片显示

结果:无论原本图片是多大,都会按照250px*60来显示。

<div class="fa">
     <img class="logo" src="<%=logoTmp%>">
</div>
.fa{content:'';display:inline-block;position:relative;top:0;left:0;width:250px;height:60px;border-radius:6.75px;background:transparent no-repeat;align-self: center;}
.logo {width: 250px;height: 60px;border-radius: 4px;overflow: hidden;background: transparent;}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值