调用标签:
中文版
<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是继承父元素的属性,它也可以用在其他地方。 |