html怎么让三张图片并列显示,并且每张图片下有文字描述。希望附上代码!谢谢!
2021-02-01 · 学动漫、设计、电竞、电商、短视频、软件等
<style>
.div2{
width: 1200px;
height: 200px;
}
.div1{
float: left;
width: 400px;
height: 200px;
}
img{
width: 400px;
height: 200px;
}
</style>
<div class="div2">
<div class="div1">
<img src="../image/1.jpg">
<span>图片1</span>
</div>
<div class="div1">
<img src="../image/2.jpg">
<span>图片2</span>
</div>
<div class="div1">
<img src="../image/3.jpg">
<span>图片3</span>
</div>
</div>
2024-07-20 广告