<divstyle="background-image: url('../images/l.png');height:24px;width:4px;float:left;"></div>
<divstyle="background-image: url('../images/c.png');height:24px;display:inline;float:left;"> <!-- 不要设置宽度display:inline;float:left;两个属性是必须的 -->
<labelid="emElement" >
${此处为动态内容}
</label>
</div>
<div style="background-image: url('../images/r_r.png');height:24px;width:14px;float:left"></div>
其中l.png为
其中c.png为
其中r.png为
效果为
会根据中间div内容自动变长
欢迎加我的qq技术群425783133