Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTML-图像按钮_Html_Image_Button_Hyperlink - Fatal编程技术网

HTML-图像按钮

HTML-图像按钮,html,image,button,hyperlink,Html,Image,Button,Hyperlink,我目前正在制作一个HTML表格,并试图将每张图片链接到我网站的不同部分。这就是我现在拥有的。第一个胎压按钮和第二个制动灯按钮工作,但由于某些原因,我的第一个制动灯按钮不工作。我的表格中都有这个问题,这只是整个表格的一部分,以防您怀疑我是否完全创建了我的表格 <tr> <th> Tire Pressure </th> <td style="text-align: center;"> <a href="#3" onclick="do_button

我目前正在制作一个HTML表格,并试图将每张图片链接到我网站的不同部分。这就是我现在拥有的。第一个胎压按钮和第二个制动灯按钮工作,但由于某些原因,我的第一个制动灯按钮不工作。我的表格中都有这个问题,这只是整个表格的一部分,以防您怀疑我是否完全创建了我的表格

<tr>
<th> Tire Pressure </th>
<td style="text-align: center;">
<a href="#3" onclick="do_button_click(16, 6, 'Tire Pressure',0);"><img src="https://zingtree-uploads.s3.amazonaws.com/images/596e3972ca3f94.79429781-53455-TPS+sensor.png" style="width: 180px; height: 180px;"></a>
</td>
</tr>
<tr>
<th> Brake Light </th>
<td style='text-align: center;">
<a href="#3" onclick="do_button_click(7, 6, 'Brake',0);"><img src="https://zingtree-uploads.s3.amazonaws.com/images/596e3972ca3f94.79429781-498613-Brake+light.png" style="width: 180px; height: 180px;"></a>
</td>
<td style="text-align: center;">
<a href="#3" onclick="do_button_click(7, 6, 'Brake',0);"><img src="https://zingtree-uploads.s3.amazonaws.com/images/596e3972ca3f94.79429781-849684-brake+light+v2.png" style="width: 180px; height: 180px;"></a>
</td>
</tr>

胎压
刹车灯

我相信你在以下几行中犯了一个非常微妙的错误:

<td style='text-align: center;">

在刹车灯下面的标签中,您似乎同时使用了单引号和双引号。这应该可以纠正你的问题,我猜这就是为什么只有两个人在工作。哇,我觉得自己太傻了哈哈!非常感谢你,真的很感谢你的接球!
<td style='text-align: center;'>