【发布时间】: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>
【问题讨论】:
-
没有理由回声不能为此工作。我注意到您的课程是 img-thumnail。您是否正在使用引导程序?如果是这样,请尝试 class="img-thumbnail" 代替
-
@JNDanial 但代码已经在 php 标签内。