我使用php从数据库中检索图像,然后将其html
用作背景。
我尝试使用此代码,但不起作用:
<div class="fill" style="background-image:url('<?php echo "<img src='getImg.php?id=$13'>"; ?>');"></div>
Rajdeep Paul是正确的变量也是无效的
您的CSS语法不正确:
<div class="fill" style="background-image:url('<?php echo "getImg.php?id=$X13" ?>')"></div>
不<img src
...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句