120html

<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="UTF-8">

<title>照片墙</title>

<style>

body {

background-color: #f5f5f5;

display: flex;

justify-content: center;

align-items: center;

height: 100vh;

}

.gallery {

display: grid;

grid-template-columns: repeat(3, 200px);

grid-gap: 20px;

}

.gallery img {

width: 200px;

height: 130px;

object-fit: cover;

border-radius: 50px; /* 圆角边框 */

box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* 阴影 */

transition: transform 0.3s;

}

.gallery img:hover {

transform: scale(1.05); /* 鼠标悬停放大 */

}

</style>

</head>

<body>

<div class="gallery">

<img src="images/photo1.jpg" alt="photo1">

<img src="images/photo2.jpg" alt="photo2">

<img src="images/photo3.jpg" alt="photo3">

<img src="images/photo4.jpg" alt="photo4">

<img src="images/photo5.jpg" alt="photo5">

<img src="images/photo6.jpg" alt="photo6">

</div>

</body>

</html>

相关推荐
小毛驴850几秒前
mvn help:effective-settings 与 mvn help:effective-pom
java·linux·前端
志尊宝7 分钟前
AI原生前端开发(001):Cursor编辑器深度使用从入门到精通
前端·编辑器·ai-native
ZoeLandia16 分钟前
TypeScript 07:工程化——import type、声明文件与 tsconfig
开发语言·前端·typescript
拖孩17 分钟前
# AI 帮我写的小程序,上线不到一个月流量主突然爆了
前端·后端·微信小程序
一木 之林36 分钟前
LangChain 第6章 Agent 智能体核心:create_agent 统一入口与 ReAct 循环
前端·react.js·langchain
不可能片场1 小时前
Electron 发布进程被回收 用脱离进程组托住
前端·electron
kaixin_learn_qt_ing1 小时前
hexdump -C /path/to/binary | less 看十六进制内容
前端·css·less
java1234_小锋1 小时前
【技术专题】HTML5 网页技术 - HTML5 链接与图片
前端·html·html5
sun_weitao1 小时前
Chrome 扩展插件开发指南
前端·javascript·chrome
小马不起床1 小时前
零基础玩转 FastAPI_12:前端详情增强与角色权限分配
前端·状态模式·fastapi