gpt4 book ai didi

html - 使用html向下移动图像

转载 作者:行者123 更新时间:2023-11-28 02:33:58 25 4
gpt4 key购买 nike

我在使用 html 向下移动图像时遇到问题,这是我的部分代码。图像最终紧挨着超链接,我希望它就在它的正下方。对不起,如果这看起来像一个愚蠢的问题,这是我第一次编码,我正在尝试创建一个网站。谢谢!

<body>

<h1 style="text-align:center;font-size:30px"><a href="bluetongueskink.html" style:color:#333>Blue Tongue Skink</a>


<img src=https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Tiliqua_scincoides_scincoides.jpg/1200px-Tiliqua_scincoides_scincoides.jpg alt="HTML tutorial" style="width:300px;height:200px;border:0;" <body>

</body </html>

最佳答案

您的标记只是非常格式错误(额外的 <body> 标签和缺少结束 </h1> ,在 > 和第三个 <img... 中缺少结尾 <body ,缺少开头 <html> , 依此类推...):

<html>

<body>

<h1 style="text-align:center;font-size:30px">
<a href="bluetongueskink.html" style:color:#333>Blue Tongue Skink</a>
</h1>

<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Tiliqua_scincoides_scincoides.jpg/1200px-Tiliqua_scincoides_scincoides.jpg" alt="HTML tutorial" style="width:300px;height:200px;border:0;" />

</body>

</html>

关于html - 使用html向下移动图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47540915/

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