pbootcms模板导航设置外链时新窗口打开
2023-09-02 14:45 作者:pbootcms模板 | 我要投稿
pbootcms模板导航设置外链时,如何实现新窗口打开外链。
代码如下:
{pboot:if('[nav:outlink]'!='')}target="_blank"{/pboot:if}
把以上代码加到导航的a链接里。参考如下
{pboot:nav}
<a href="[nav:link]" {pboot:if('[nav:outlink]'!='')}target="_blank"{/pboot:if}>[nav:name]</a>
{/pboot:nav}

更多pbootcms模板教程:https://www.91084.com/pbootcms/
pbootcms网站模板下载:https://www.91084.com/