- 使用div将img和内容包裹起来,div设置为float:left; position:relative,
- img设置width: 100%;position: absolute;高度自定义
- 文字部分设置 white-space: nowrap;display: inline-block;width: auto;position: relative;
<div class="myCase-info">
<div class="myCase-img" style="position: relative;float: left;">
<img src="/titleBg.png" id="title"/ style="width: 100%;position: absolute;height: 23px;">
<div class="caseTitleBox" style="white-space: nowrap;">1111<span id="cq-cnt"></span>222222</div>
</div>
</div>