我有一张桌子和一系列附在图片上的链接。我无法在桌面下获得这些链接。无论我做什么,它都会保持在它之上。
我的代码看似笨重或错误。
<table style="margin-top:10px; margin-left:165px" border="1" cellpadding="15" cellspacing="5">
<tbody><tr>
<tr style="background-color:#FF0000;color:#ffffff;">
<td><div><iframe src="https://www.youtube.com/embed/2NaNp7nmYMg?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
<td><div><iframe src="https://www.youtube.com/embed/_z5rqY8tAYQ?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
<td><div><iframe src="https://www.youtube.com/embed/dheMabIam7c?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
</tr>
<p style="padding-left: 750px; padding-top: 50px"
<a href="https://twitter.com/ShadowKiller158" target="_blank"></a>
<a href="https://youtube.com/user/shadowman158" target="_blank"><img src="youtube.png" alt="YouTube" width="75" border="0" height="75"></a>
<a href="https://twitter.com/ShadowKiller158" target="_blank"><img src="twitter.png" alt="Twitter" width="75" border="0" height="75"></a>
<a href="https://www.facebook.com/alexander.schewior" target="_blank"><img src="facebook.png" alt="Facebook" width="75" border="0" height="75"></a>
<a href="http://steamcommunity.com/id/ShadowManTM/" target="_blank"><img src="steam.png" alt="Steam" width="75" border="0" height="75"></a>
<a href="https://www.instagram.com/shadowmantm/" target="_blank"><img src="instagram.png" alt="Instagram" width="75" border="0" height="75"></a>
</p>
答案 0 :(得分:0)
您还没有关闭您的桌子或标签。你还没有关闭你的开场P标签。
所以你的代码应该是:
<table style="margin-top:10px; margin-left:165px" border="1" cellpadding="15" cellspacing="5">
<tbody>
<tr style="background-color:#FF0000;color:#ffffff;">
<td><div><iframe src="https://www.youtube.com/embed/2NaNp7nmYMg?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
<td><div><iframe src="https://www.youtube.com/embed/_z5rqY8tAYQ?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
<td><div><iframe src="https://www.youtube.com/embed/dheMabIam7c?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
</tr>
</tbody>
</table>
<p style="padding-left: 750px; padding-top: 50px">
<a href="https://twitter.com/ShadowKiller158" target="_blank"></a>
<a href="https://youtube.com/user/shadowman158" target="_blank"><img src="youtube.png" alt="YouTube" width="75" border="0" height="75"></a>
<a href="https://twitter.com/ShadowKiller158" target="_blank"><img src="twitter.png" alt="Twitter" width="75" border="0" height="75"></a>
<a href="https://www.facebook.com/alexander.schewior" target="_blank"><img src="facebook.png" alt="Facebook" width="75" border="0" height="75"></a>
<a href="http://steamcommunity.com/id/ShadowManTM/" target="_blank"><img src="steam.png" alt="Steam" width="75" border="0" height="75"></a>
<a href="https://www.instagram.com/shadowmantm/" target="_blank"><img src="instagram.png" alt="Instagram" width="75" border="0" height="75"></a>
</p>
这是一个关于打开和关闭HTML标记的有用教程: http://www.easyhtmlcode.com/lesson1.html
答案 1 :(得分:0)
抱歉,我忘了关闭tbody和table标签。感谢Pete向我指出了这一点!
答案 2 :(得分:0)
您需要小心打开和关闭HTML标记,因为某些浏览器会自动处理未关闭的标记,并且不会让您知道存在不匹配。
每个配对标签应该在正确的位置关闭!否则会让你遇到麻烦!
<table style="margin-top:10px; margin-left:165px" border="1" cellpadding="15" cellspacing="5">
<tbody><tr>
<tr style="background-color:#FF0000;color:#ffffff;">
<td><div><iframe src="https://www.youtube.com/embed/2NaNp7nmYMg?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
<td><div><iframe src="https://www.youtube.com/embed/_z5rqY8tAYQ?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
<td><div><iframe src="https://www.youtube.com/embed/dheMabIam7c?ecver=2" width="481" height="274" frameborder="0" allowfullscreen></iframe></div> </td>
</tr>
</tbody>
</table>
<p style="padding-left: 750px; padding-top: 50px">
<a href="https://twitter.com/ShadowKiller158" target="_blank"></a>
<a href="https://youtube.com/user/shadowman158" target="_blank"><img src="youtube.png" alt="YouTube" width="75" border="0" height="75"></a>
<a href="https://twitter.com/ShadowKiller158" target="_blank"><img src="twitter.png" alt="Twitter" width="75" border="0" height="75"></a>
<a href="https://www.facebook.com/alexander.schewior" target="_blank"><img src="facebook.png" alt="Facebook" width="75" border="0" height="75"></a>
<a href="http://steamcommunity.com/id/ShadowManTM/" target="_blank"><img src="steam.png" alt="Steam" width="75" border="0" height="75"></a>
<a href="https://www.instagram.com/shadowmantm/" target="_blank"><img src="instagram.png" alt="Instagram" width="75" border="0" height="75"></a>
</p>
祝你好运并享受学习HTML