html-table - 表格背景 - 图像的画布上带有文本的链接?
问题描述
新手,不确定在这里使用的正确代码。图像的画布上带有文本的链接
<td background="#" width="600" height="300" style="background-position: center top;">
<!--[if (gte mso 9)|(IE)]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:300px;">
<v:fill type="tile" src="#" />
<v:textbox inset="0,0,0,0">
<![endif]-->
干杯!
解决方案
如果你想让它带你到一个页面,那么将整个东西包装在一个锚( a
) 标记中:
<a href="foo.html">
<!-- So contentful -->
</a>
如果您希望它只是让指针光标向上,那么您可以通过cursor
CSS 属性来做到这一点:
<div style="cursor: pointer"></div>
编辑:您总是希望td
在该表项中拥有最顶层的元素。因此,您只需创建一个div
并将样式cursor: pointer
放在该 div 上,其中的内容位于td
.
推荐阅读
- javascript - 如何在 javascript 中使用 async await 等到 for 循环完成?
- flutter - 在颤动中看到大的图像
- c# - 使用类对象在一种方法中进行插入排序
- sql - 如何获取用户会话?
- javascript - 你如何用 React 更新 div?
- python - 美丽的汤| 如何在标签中分隔多个属性
- r - 将具有月、年和计数列的数据框转换为时间序列
- javascript - Angular JS 日历无法正确显示
- spring - 我们要不要做一个 bean 和 Autowire OkHttpClient
- ssas - 我如何在 SSAS DAX 中拆分由 , 分隔的列