<style type="text/css"> #image img{ max-width:1024px; width:expression(document.body.clientWidth > 1024? "1024px": "auto" ); border:1px dashed #000; }
<body>
<center>
<div id="image">
<c:if test="${label!= null}">
<img src="UploadImg/${label.picUrl }"/>
</c:if>
<c:if test="${label== null}">
<center><h1>暂无照片信息!</h1></center>
</c:if>
</div>
</center>
</body>