【发布时间】:2016-03-17 09:28:45
【问题描述】:
有没有办法在 php 脚本中添加 html <a> 代码,如下所示:
<div id="flashDiv" align="center" style="position:absolute; top:20%; left:30%; z-index:51;">
<?php if ($OS == Windows): ?>
<a target="_blank" href="http://localhost/file.exe">
<img src="http://localhost/flower.png"></img>
</a>
</div>
<?php else: ?>
nothing
【问题讨论】:
-
是的,但在您的示例中缺少 endif