假设有一张图片的宽度为300,高度为400 ......
无论如何强制这些图片放大宽度:500和高度:500 in html或php?
<img src="<?php echo "/uploads/store/logo/".$store['logo'];?>" width="460" height="590" alt="" class="front-image">
<img src="<?php echo "/uploads/store/logo/".$store['logo'];?>" width="460" height="590" alt="" class="back-image">
我试图这样做
<div style="width:460px; height: 590px;">
<a href="#">
<img src="<?php echo "/uploads/store/logo/".$store['logo'];?>" width="460" height="590" alt="" class="front-image">
<img src="<?php echo "/uploads/store/logo/".$store['logo'];?>" width="460" height="590" alt="" class="back-image">
<span class="single-pro-quick-view"> <span class="single-pro-quick-table"> <span class="single-pro-quick-table-cell"> <i class="fa fa-search"></i> </span> </span> </span>
</a>
</div>
答案 0 :(得分:0)
只需在标签内设置高度和宽度,或使用css
示例:
<img src="http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded&a" width="500px" height="500px">