gpt4 book ai didi

html - 将图像直接放在彼此之上

转载 作者:行者123 更新时间:2023-11-27 23:59:09 25 4
gpt4 key购买 nike

我有这段 HTML 代码,我只想将图像直接放在彼此之上。 (所以他们之间没有这条绿线)如何做到这一点?

示例网址:http://todolist.x10.mx/test.html

HTML代码:

<!DOCTYPE html>

<html>
<head>

<title>test</title>
<meta http-equiv="Content-Type" content="text/html">
</head>
<body bgcolor="green">
<img src="f.jpg" width="200" height="80" alt="plaatje1" style="border:none;padding:0px;spacing:0px;margin:0px"><br>
<img src="f.jpg" width="200" height="80" alt="plaatje2" style="border:none;padding:0px;spacing:0px;margin:0px"><br>
</body>
</html>

最佳答案

不要使用
而是添加以下 CSS:

img {
margin: 0;
display: block;
}

关于html - 将图像直接放在彼此之上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22280436/

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