1
我們如何使用codeigniter的函數錨點爲div標籤?Codeigniter錨點div標籤
我得到了在純HTML DIV圍繞我希望把錨(URI段,文本,屬性)
它看起來像這樣:
<a class="a_services" href="http://justinbieber.com">
<div id="seminar">Hello world</div>
</a>
我們如何使用codeigniter的函數錨點爲div標籤?Codeigniter錨點div標籤
我得到了在純HTML DIV圍繞我希望把錨(URI段,文本,屬性)
它看起來像這樣:
<a class="a_services" href="http://justinbieber.com">
<div id="seminar">Hello world</div>
</a>
您可以在第二個參數的代碼。
echo anchor('http://justinbieber.com', '<div id="seminar">Hello world</div>', 'class="a_services"');
其實我已經練過這種方式,但是這在我看來並不是專業的方式。除了這種方式外,似乎沒有其他方式可以使用這個功能了。我有其他問題是否有可能適應標準的HTML標籤作爲錨功能?我的意思是Hello world ? –
jakentus
適應通常的標籤很簡單。Hello world –
jakentus