p{ position:relative; margin:0 0 5px 0; word-break:break-all; overflow:hidden; padding-left: 35px; } p img{ position:absolute; top:0px; width: 30px; height: 30px; border-radius: 50px; border: 1px solid #000; } .left img{ left:0;} .right img{ right:0;} .left span{ float:left; padding:5px; background:#FFC;} .right span{ float: right; padding:5px; background:green;}<!--<p class="left" id="left"> <img src="images/1.jpeg"> <span></span> </p> <p class="right" id="right"> <img src="images/2.jpeg"> <span></span> </p>-->
添加回答
举报
0/150
提交
取消