[CSS]--文字显示在图片下面,且多个图片显示在同一行,文字超长时用省略号替代

22 篇文章 0 订阅


<style>
.card_s{
 clear:both;
 float:left;
}

.row{
    width:100%;
    clear:both;
    margin-right:auto;
    margin-left:auto;
}

.p_show {
 display:inline;
 margin-right:1px;
 float:left;
}
.a_text{
  width:70px;
   height:20px;
  text-decoration: underline; 
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
  clear:both;
 }
.img_text {
 float:left;
 width:80px;
 height:64px;
}
</style>


<p class="row">
           <p class="p_show">  
            <img src="image.wap?mi=Mjc2NzU1NTQwMzM1&t=0&public=true&from=channel" class="img_text" />
            <a href='channel.wap?call=channelPlay&username=ZGRkZA==&mediaId=88' class="a_text" alt="test">
             f1hdd3dddd1ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
                   ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
             </a>
            </p>
            <p class="p_show">         
            <img src="image.wap?mi=Mjc0OTAzMzM2NzA1&t=0&public=true&from=channel" class="img_text" />
            <a href='channel.wap?call=channelPlay&username=ZGRkZA==&mediaId=132' class="a_text">照片003</a>
              </p>
            <p class="p_show">        
            <img src="image.wap?mi=Mjc2ODIzNDM4NzA3&t=0&public=true&from=channel" class="img_text" />
            <a href='channel.wap?call=channelPlay&username=ZGRkZA==&mediaId=96' class="a_text">15826230</a>
               </p>
            <p class="p_show">       
            <img src="image.wap?mi=Mjc2NzA1MTQzNDA0&t=0&public=true&from=channel" class="img_text" />
            <a href='channel.wap?call=channelPlay&username=ZGRkZA==&mediaId=94' class="a_text">10</a>
             </p>
</p>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值