首页 > 解决方案 > 表格背景 - 图像的画布上带有文本的链接?

问题描述

新手,不确定在这里使用的正确代码。图像的画布上带有文本的链接

<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]-->

干杯!

标签: html-table

解决方案


如果你想让它带你到一个页面,那么将整个东西包装在一个锚( a) 标记中:

<a href="foo.html">
  <!-- So contentful -->
</a>

如果您希望它只是让指针光标向上,那么您可以通过cursorCSS 属性来做到这一点:

<div style="cursor: pointer"></div>

编辑:您总是希望td在该表项中拥有最顶层的元素。因此,您只需创建一个div并将样式cursor: pointer放在该 div 上,其中的内容位于td.


推荐阅读