使用方法:
1、head引入css文件
<link rel="stylesheet" href="css/style.css">
2、body引入HTML代码
<div class="container"> <div class="box"> <img src="img/1000x800.jpg"> <span>CSS</span> </div> <div class="box"> <img src="img/1000x802.jpg"> <span>Image</span> </div> <div class="box"> <img src="img/1000x804.jpg"> <span>Hover</span> </div> <div class="box"> <img src="img/1000x806.jpg"> <span>Effect</span> </div> </div>