当前位置: 移动技术网 > IT编程>网页制作>Html5 > 图片并列

图片并列

2019年09月26日  | 移动技术网IT编程  | 我要评论

 

<!doctype html>

<html>
<head>
<meta charset="utf-8">
<title>图片并排排列</title>
<style>
.xd-box{
width: 1100px;
margin: 0px auto;
position: relative;
}
.xd1_kuang{
position: relative;
margin-top: 100px;
padding: 20px 45px;
border: 1px solid #ddd;
}
.xd1_kuang h2{
width: 156px;
text-align: center;
background-color: #fff;
position: absolute;
left: 455px;
top: -40px;
font-size: 25px;
}


.row-advantage {
margin: 0 auto;
text-align: center;
margin-top: 0px;
}
.col-advantage {
width: 170px;
display: inline-block;
margin: 0 -2px;
text-align: center;
vertical-align: middle;
}

.col-advantage img {
width: 50px;
height: 50px;
}
</style>
</head>
<body>
<div class="xd-box">
<div class="xd1_kuang" style="padding: 20px 0;">
<h2>合作伙伴</h2>
<div class="row-advantage m0">
<div class="col-advantage w17" >
<img src="img/yun.png" alt="" style="width: 77%;height: 100%;">
</div>
<div class="col-advantage w17">
<img src="img/chat.png" alt="" style="width: 63%;height: 100%;">
</div>
<div class="col-advantage w17">
<img src="img/zhaos.png" alt="" style="width: 84%;height: 100%;">
</div>
<div class="col-advantage w17">
<img class="p-bt" src="img/baid.png" alt="" style="width: 68%;height: 100%; margin-top: 10px;">
</div>
<div class="col-advantage w17">
<img src="img/tout.png" alt="" style="width: 68%;height: 100%;">
</div>
<div class="col-advantage w17">
<img src="img/douy.png" alt="" style="width: 60%;height: 100%;">
</div>
</div>
</div>
</div>
</div>

</body>
</html>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网