使用css更改html标记的href [英] Changing the href of an html tag with css
本文介绍了使用css更改html标记的href的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从
<a href="contact.html" >Contact</a>
到
<a href="tel:+13174562564" >Contact</a>
只有Css可能或像这样
with only Css if it's possible or like this
<a href="tel:+13174562564" >+13174562564</a>
我有很多页面,我不想编辑所有的生活时间,这就是为什么我需要在CSS中做它,我没有JS链接到他们
i have a lot of pages and i don't want to edit all of them it will take a life time that's why i need to do it in CSS and i have no JS linked to them
推荐答案
CSS是显示,不能用它修改文档对象模型。对不起,这不能做。我希望我有一个更好的答案,但它不能做是唯一的答案。
CSS is display only, you cannot modify the document object model with it. Sorry, this cannot be done. I wish I had a better answer, but 'it cannot be done' is the only answer.
这篇关于使用css更改html标记的href的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文