<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.con{
width: 300px;
/* background-color: gray; */
}
.img_wrap{
width: 100%;
height: 300px;
/* background-color: pink; */
overflow: hidden;
}
.con img{
width: 100%;
/* opacity: 0.5; */
}
.con h3{
margin-top: 10px;
}
.con img:hover{
width: 350px;
}
.con:hover h3{
text-decoration: underline;
}
</style>
</head>
<body>
<div class="con">
<div class="img_wrap">
<img src="https://s.pstatic.net/shopping.phinf/20260316_29/4c32e677-a1bf-4efd-ab8a-809808b329bd.jpg?type=f375_378" alt="">
</div>
<h3>
와이프 때문에 산건데 내가 더 만족해~
</h3>
</div>
</body>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.con{
width: 300px;
/* background-color: gray; */
}
.img_wrap{
width: 100%;
height: 300px;
/* background-color: pink; */
overflow: hidden;
}
.con img{
width: 100%;
/* opacity: 0.5; */
}
.con h3{
margin-top: 10px;
}
.con img:hover{
width: 350px;
}
.con:hover h3{
text-decoration: underline;
}
</style>
</head>
<body>
<div class="con">
<div class="img_wrap">
<img src="https://s.pstatic.net/shopping.phinf/20260316_29/4c32e677-a1bf-4efd-ab8a-809808b329bd.jpg?type=f375_378" alt="">
</div>
<h3>
와이프 때문에 산건데 내가 더 만족해~
</h3>
</div>
</body>
#스타일시트 반응형