1
codeigniter的新手。我無法以書面形式使用HTML幫助的功能,下面的HTML代碼:如何使用HTML幫助函數在codeigniter中編寫以下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"]) ) ;
?>
但它不能正常工作。請幫助
工作不正常?究竟是什麼問題 –
它沒有顯示任何內容。下面給出的代碼工作正常。 Thanx – Anshul
我強烈建議,你可以在哪裏寫...良好的舊HTML。讓php生成基本的東西只會增加執行時間...... HTML不會被服務器執行,因此在視圖中使用盡可能多的純HTML的任何方式都會隨着代碼庫的增加而付費。 –