有没有办法<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
您需要使用正确的语法: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] 删除。
我来说两句