I'm trying to include a link within <td></td>
, but it's not showing at all.
我正在尝试在 中包含一个链接,但它根本没有显示。
<tr align=left>
<td><span style="font-weight:bold;">Website</span></td>
<td><a href="http://www.zionsb.org"></a></td>
</tr>
CSS
td {
text-transform: none;
line-height: 115%;
vertical-align: middle;
padding: 5px 0 5px 5px;
}
Please where am I going wrong ?
请问我哪里错了?
2 个解决方案
#1
5
You must have some content in your link for it to be visible. For example :
您必须在链接中包含一些内容才能显示。例如 :
<a href="http://www.zionsb.org">some text</a>
You could also bind the click event to the cell if you have nothing to display :
如果您无需显示任何内容,也可以将click事件绑定到单元格:
<td id=A style="cursor:pointer"></td>
<script>
window.onload = function(){
document.getElementById('A').onclick=function(){window.location="http://www.zionsb.org"};
};
</script>
but that wouldn't alone make the link visible.
但这并不能单独使链接可见。
#2
3
You've successfully made a link, but now need to say what the link is to! Between your:
您已经成功建立了链接,但现在需要说出链接是什么!你之间:
<a> and </a>
tag, you must put the words that you want to be seen. For example:
标签,你必须把你想要看到的单词。例如:
<a href="http://www.zionsb.org">Text you want to be seen</a>
#1
5
You must have some content in your link for it to be visible. For example :
您必须在链接中包含一些内容才能显示。例如 :
<a href="http://www.zionsb.org">some text</a>
You could also bind the click event to the cell if you have nothing to display :
如果您无需显示任何内容,也可以将click事件绑定到单元格:
<td id=A style="cursor:pointer"></td>
<script>
window.onload = function(){
document.getElementById('A').onclick=function(){window.location="http://www.zionsb.org"};
};
</script>
but that wouldn't alone make the link visible.
但这并不能单独使链接可见。
#2
3
You've successfully made a link, but now need to say what the link is to! Between your:
您已经成功建立了链接,但现在需要说出链接是什么!你之间:
<a> and </a>
tag, you must put the words that you want to be seen. For example:
标签,你必须把你想要看到的单词。例如:
<a href="http://www.zionsb.org">Text you want to be seen</a>