【发布时间】:2013-02-14 21:10:05
【问题描述】:
我想知道是否有可能在 css 表后面有可点击的链接。 当图像为 40px 时,无法选择其后面的链接。
为什么我把它放在一个表格中是因为每个文本块都需要是 248px (744/3)
CSS
#tabel{
position:absolute;
}
table, td, th
{
width:744px;
height:40px;
text-align:center;
}
th
{
background-color:transparent;
color:white;
}
HTML:
<div id="tabel">
<table cellspacing="0" cellpadding="0">
<tr>
<th>TXT 1</th>
<th>TXT 2</th>
<th>TXT 3</th>
</tr>
</table>
</div>
我的目标是有 3 个可点击的按钮(用于带有导航的 jquery 图像滑块),上面有文本。
【问题讨论】:
-
为什么不显示:没有按钮,直到显示它们?
-
你为什么不在
th上设置你的事件处理程序? -
因为删除了文本?我想被看见..
-
对不起,是第一个。我是菜鸟...但我不知道事件处理程序是什么?
-
你不需要使用表格来让你的元素是 248px 宽。除非是表格数据,否则不应在表格中。
标签: html css hyperlink background-image html-table