gpt4 book ai didi

html - 表格单元格图像未显示

转载 作者:太空宇宙 更新时间:2023-11-03 20:06:20 25 4
gpt4 key购买 nike

不显示表格单元格图像和单元格背景图像:

<table border="1">
<colgroup>
<col width="150"/>
<col width="350"/>
</colgroup>
<tbody>
<tr>
<td height="100%" width="92%"><image src="../images/refresh.jpg" alt="Test"></td>
<td background="https://media.giphy.com/media/10S1CGpBU06FZ6/giphy.gif" width="8%"></td>
</tr>
</tbody>
</table>

最佳答案

试试这个。

<table border="1">
<colgroup>
<col width="150"/>
<col width="350"/>
</colgroup>
<tbody>
<tr>
<td height="100%" width="100%"><img src="../images/refresh.jpg" alt="Test"></td>
<td style="background:url(../images/refresh.jpg);" width="100%"></td>
</tr>
</tbody>
</table>

因为它是 img 而不是 image 并且 TD 元素没有 background 属性,你可以将您的自定义样式放入 style 属性中,就像上面一样。

关于html - 表格单元格图像未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47201168/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com