您当前的位置:首页 > 编程技术

蓝科cms调用引用标签示例(以公司简介为例)

时间:2021-07-27 11:02:50  来源:网络    编辑:本站  点击:

调用标签:

 

中文版

 <a href="<{:W('Listhref',array('url'=>$vo['url'],'id'=>$vo['id'],'link'=>$vo['link'],'lang'=>'c'))}>"><{$vo.name}></a>


英文版:

 <a href="<{:W('Listhref',array('url'=>$vo['url'],'id'=>$vo['id'],'link'=>$vo['elink'],'lang'=>'e'))}>"><{$vo.ename}></a>


 
如:调用  公司简介,假设公司简介的id是15,那么修改1d即可:

中文版:

<a style="text-decoration: none; color: inherit;" href="<{:W('Listhref',array('url'=>$vo['url'],'id'=>15,'link'=>$vo['link'],'lang'=>'c'))}>"></a>

英文版:
<a style="text-decoration: none; color: inherit;" href="<{:W('Listhref',array('url'=>$vo['url'],'id'=>15,'link'=>$vo['elink'],'lang'=>'e'))}>"></a>

 

注:附加的style="text-decoration: none; color: inherit;"是为了让链接后字体仍然保持原来的颜色。

 

 

知识扩展:

 

HTML文字加上超链接的时候,如何让文字不变色?
清晓凝露 
推荐于2017-11-24
<a style=" text-decoration: none; color: #444;" href="http://baidu.com">百度收索</a>
</body>
其中"color"的属性可以改为你想要的其他颜色。
另外我也正在学习html,有什么问题我们可以多交流交流。
追问
也就是说我在父元素里面规定了文字颜色,A标签无论如何都会让文字变色?
有没有跟text-decoration类似的标签,让A标签里的文字不变色?
追答
<a  style=" text-decoration: none; color: inherit;" href="http://baidu.com">百度收索</a>
    inherit是继承父元素的属性,它也可以用在其他地方。

点赞
返回首页
返回
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
栏目导航

| 传统文化 | 武术天地 | 编程技术 | 好听音乐 | 养生中医 | 智慧人生 | 常用工具 | 写作园地 | 影视娱乐 | php专栏 | 道德经专栏 |
最新推荐
python内建函数大全(built-in functions)
python内建函数大…
点击按钮(button)打开新窗口(window)
点击按钮(button)…
帝国cms网络视频引用代码--具体操作教程
帝国cms网络视频引…
相关文章
栏目更新
栏目热门