<div style="width: 135px;height: 135px;"> <img src="12.jpg" alt="图片" width="135px" height="135px" class="img-rounded"/> <div style="width: 135px;height: 45px;margin-top: -45px; background-color: rgba(0,0,0,.3); position: absolute; /*必须要加上*/ z-index: 1;/*这个值越大越好,表示距离屏幕越近,越在上层*/"> <label>test</label> </div> </div>
jsp页面div浮动在<img>上面
最新推荐文章于 2023-05-12 20:57:54 发布