在php中添加html <a>标记

IT先生

有没有办法<a>在php脚本中添加html代码,例如:

<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
阿尼鲁达(Aniruddha Chakraborty)

您需要使用正确的语法:p

<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">
</a>
</div>
<?php endif; ?>

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章