css 图片固定高度
1.background url center/cover
<div class="img-box" style="background: url(<%=listimg%>) center/cover"> <a href="./directSeeding.html?id=<%=id%>" target="@@if targetblank _blank @@endif"> <div class="img-back"></div> <h5 class="play">播放</h5> <span class="mark_custom"><span class="mark_inner"><%=duration %></span></span> </a> </div>
.video-container .live-item .img-box{ /*min-height: 200px;*/ /*height: 200px;*/ min-height: 203px; height: 203px; }
2.
.videobox_c .video-message .room-picture img { height: 100%; position: absolute; left: 50%; top: 50%; -webkit-transform: translate3d(-50%,-50%,0); -moz-transform: translate3d(-50%,-50%,0); transform: translate3d(-50%,-50%,0); }