1、
html:
<div class="box1">
<div class="box">
![](5-1.jpg)
<h3>Smartisan 坚果自拍杆</h3>
<span>通用3.5mm接口、航空铝合金伸缩杆</span>
<p>$69.00</p>
<div class="fox">
<a>购物车</a>
<a>购物车</a>
</div>
<a href="#"></a>
</div>
<div class="box">
![](5-1.jpg)
<h3>Smartisan 坚果自拍杆</h3>
<span>通用3.5mm接口、航空铝合金伸缩杆</span>
<p>$69.00</p>
<div class="fox">
<a>购物车</a>
<a>购物车</a>
</div>
<a href="#"></a>
</div>
<div class="box">
![](5-1.jpg)
<h3>Smartisan 坚果自拍杆</h3>
<span>通用3.5mm接口、航空铝合金伸缩杆</span>
<p>$69.00</p>
<div class="fox">
<a>购物车</a>
<a>购物车</a>
</div>
<a href="#"></a>
</div>
<div class="box">
![](5-1.jpg)
<h3>Smartisan 坚果自拍杆</h3>
<span>通用3.5mm接口、航空铝合金伸缩杆</span>
<p>$69.00</p>
<div class="fox">
<a>购物车</a>
<a>购物车</a>
</div>
<a href="#"></a>
</div>
<div class="box">
![](5-1.jpg)
<h3>Smartisan 坚果自拍杆</h3>
<span>通用3.5mm接口、航空铝合金伸缩杆</span>
<p>$69.00</p>
<div class="fox">
<a>购物车</a>
<a>购物车</a>
</div>
<a href="#"></a>
</div>
</div>
css:
.box1{
width: 1500px;
margin-left: auto;
margin-right: auto;
}
.box1:after{
content: "";
display: table;
clear: both;
}
.box1>div{
width: 19%;
height: 400px;
border: 1px solid #cccccc;
float: left;
text-align: center;
box-sizing: border-box;
text-align: center;
position: relative;
}
.box1>div:not(:first-child){
margin-left: 1.25%;
}
.fox{
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 119px;
display: none;
background-color: white;
}
.fox>a{
border: 1px solid #cccccc;
border-radius: 6px;
width: 60px;
height: 30px;
display: inline-block;
line-height: 30px;
}
.box:hover .fox{
display: block;
}
.box:hover>a{
position: absolute;
top: 0;
left: 0;
box-shadow: 0 0 12px 3px #cccccc inset;
width: 100%;
height: 100%;
}