css实现并列效果

 

<a href="#" class="mj-picList">
    <div class="mj-picList-pic" style="background-image:url(http://www.superslide2.com/demo/images/pic1.jpg)">&nbsp;</div>
  <div class="mj-picList-info">
    <b class="mj-picList-b">加快修订等规章加快修订等规章加快修订等规章</b>
    <p class="mj-picList-p">加快修订《北京市社会抚养费征收管理办法》等规章</p>
  </div>
</a>
/* 图文并排 */
.mj-picList-pic{position: absolute;left: 0;top: 0;width: 80px;height: 80px;background-position: center center;-webkit-background-size: cover;
background-size: cover;}
.mj-picList{overflow: hidden;display: block;height: 80px;position: relative;text-decoration: none;color: #444;}
.mj-picList-info{margin-left: 90px;padding-right: 5px;}
.mj-picList-b{font-weight: normal;color: #444;display: block;white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow:hidden;font-size: 14px;line-height: 30px;}
.mj-picList-p{margin: 0;padding: 0;line-height: 23px;color: #999;font-size: 12px;}
.mj-picList:hover{background:#f1f1f1;}

 

转载于:https://www.cnblogs.com/terminator404/p/5459097.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值