<%--
Created by IntelliJ IDEA.
User: user
Date: 2021/8/10
Time: 17:22
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<link type="text/css" rel="stylesheet" href="../static/reset.css" />
<title>Title</title>
<style>
.box1{
height:470px;
width:190px;
overflow: hidden;
margin: 50px auto;
}
.box1 li:not(:last-child){
margin-bottom: 10px;
}
.box1 img {
width: 100%;
color:#F4F4F4;
}
</style>
</head>
<body>
<ul class="box1">
<li>
<a>
<img src="../static/1.jpg" href="www.baidu.com">
</a>
</li>
<li>
<a></a>
<img src="../static/2.jpg">
</li>
<li>
<a></a>
<img src="../static/3.jpg">
</li>
</ul>
</body>
</html>
HTML 图片列表
最新推荐文章于 2023-12-16 11:46:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
- 列表,其中每个列表项包含一张图片。图片通过标签包裹,设置了宽度100%,并有隐藏溢出的处理。页面引用了外部reset.css文件以重置浏览器默认样式。