【问题标题】:Style an echoed image为回显图像设置样式
【发布时间】:2018-09-24 20:36:34
【问题描述】:

似乎我无法在 php 中设置回显图像的样式。我怎样才能做到这一点?谢谢:)

<a href="profile.html"><img src="data:image/jpeg;base64,'.base64_encode($row['image'] ).'" height="80px" width="80px" class="img-thumnail" style="margin-bottom:90px;"/></a>

【问题讨论】:

标签: php html css image


【解决方案1】:

试试这个代码

<img class="im" src="data:image/jpeg;base64,'<?php echo base64_encode($row['image'] ); ?>'" height="180px" width="180px" class="img-thumnail" style="margin-bottom:90px;"/>

【讨论】:

    猜你喜欢
    • 2017-05-08
    • 1970-01-01
    • 2013-05-16
    • 1970-01-01
    • 1970-01-01
    • 2012-07-29
    • 1970-01-01
    • 2012-10-12
    • 1970-01-01
    相关资源
    最近更新 更多