我有以下内容:
'.anchor('','Home').'
Run Code Online (Sandbox Code Playgroud)
我想为它添加以下CSS类:
class="top_parent"
Run Code Online (Sandbox Code Playgroud)
这样,当它在浏览器中呈现时,代码将类似于以下内容:
<a href="#" class="top_parent">Home</a>
Run Code Online (Sandbox Code Playgroud)
在此先感谢,非常感谢任何帮助.
-
汤姆
Mah*_*tar 26
anchor('#', 'Home', array('class' => 'top_parent'));
Run Code Online (Sandbox Code Playgroud)
Codeignitor函数定义如下:
function anchor($uri = '', $title = '', $attributes = '')
Run Code Online (Sandbox Code Playgroud)
我会尝试首先发送一个带有类键和值的数组.
这些函数位于\ system\helpers \文件夹中.
| 归档时间: |
|
| 查看次数: |
23482 次 |
| 最近记录: |