本文介绍了具有指向文本的href的HTML链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个简单的是或否问题(可能是否),谷歌搜索似乎并没有给我一个直接的答案.假设您有一个
This is a simple yes or no question (probably no), googling didn't seem to give me a straight answer. Say you have a link that is
<a href="www.stackoverflow.com">www.stackoverflow.com</a>
是否可以做类似的事情
<a href=self.text>www.stackoverflow.com</a>
不使用其他任何东西(显然,没有脚本)?有什么捷径吗?
without using anything else (obviously, no scripts)? Is there any kind of shortcut?
推荐答案
否,您不需要同时具有href属性和A标记之间的值.如果不使用任何脚本,则无法引用其自身的内容.
No you need to have both the href attribute and a value between the A tags. Without using any scripts its not possible to refer to its own contents.
这篇关于具有指向文本的href的HTML链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!