<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>个人相册</title>
</head>
<style>
.text {
width: 100px;
height: 25px;
background-color: lightslategray;
font-size: 1em;
color: white;
text-align: center;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 5px;
float: left;
}
.clearfix::after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#box2 {
width: 1550px;
height: 700px;
}
img {
width: 490px;
height: 190px;
}
.box {
margin-left: 5px;
margin-right: 5px;
margin-top: 2px;
margin-bottom: 2px;
float: left;
}
.box1 {
width: 490px;
height: 25px;
background-color: lightgrey;
text-align: center;
}
</style>
<body>
<div id="box1" class="clearfix">
<div class="text">艺术摄影</div>
<div class="text">婚纱摄影</div>
<div class="text">纪实摄影</div>
<div class="text">儿童摄影</div>
<div class="text">摄影器材</div>
<div class="text">创意摄影</div>
</div>
<div id="box2" class="clearfix">
<div class="box">
<img src="../images/objpic01.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic02.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic03.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic04.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic05.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic06.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic07.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic08.jpg">
<div class="box1">摄影艺术</div>
</div>
<div class="box">
<img src="../images/objpic09.jpg">
<div class="box1">摄影艺术</div>
</div>
</div>
</body>
</html>