codeigniter新手。我在使用HTML帮助程序函数编写以下HTML代码时遇到了麻烦:
<a href="" title="">
<?=img( ["src"=>'images/LOGO.png', "height"=>"50", "width"=>'350',"style"=>"margin-left:-60px"]) ?>
<h5 style="position: absolute;color:black;top:40px;z-index: +99999;margin-left: 30px;font-weight: bold">Tours & Travels</h5>
</a>
我自己尝试了并写了以下内容:
<?= anchor("incredible_ukd" ,heading("Tour & Travels",5,"style= position: absolute;color:black;top:85px;z-index: +99999;margin-left: 30px;font-weight: bold"), img( ["src"=>'images/LOGO.png', "height"=>"50", "width"=>'350',"style"=>"margin-left:-60px"]) ) ;
?>
但它不能正常工作。请帮忙
答案 0 :(得分:1)
这个怎么样:
<a href="<?php echo site_url('/') ?>">
<?php echo img( ["src"=>'images/LOGO.png', "height"=>"50", "width"=>'350',"style"=>"margin-left:-60px"]); ?>
<?php echo heading('Tours & Travels', 5, 'style="position: absolute;color:black;top:40px;z-index: +99999;margin-left: 30px;font-weight: bold"'); ?>
</a>