一:商品列表的html和css
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/goodsLst.css" />
</head>
<body>
<div id="cont">
</div>
<script src="./js/axios.js"></script>
<script src="./js/index.js"></script>
</body>
</html>
<script>
</script>
*{
margin: 0;
padding: 0;
}
#cont{
width: 1000px;
overflow: hidden;
margin: 30px auto;
}
.box{
width: 250px;
border: 1px solid #f2f2f2;
box-sizing: border-box;
text-align: center;
float: left;
}
.box img{
width: 90%;
display: block;
margin: 10px auto;
}
.box span{
display: block;
color: red;
}
.box p{
height: 52px;
overflow: hidden;
font: 12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,"\u5b8b\u4f53",sans-serif;
line-height: 26px;
}
.btn-lg {
height: 30px;
line-height: 30px;
padding: 0 26px;
font-size: 18px;
font-family: "microsoft yahei";
margin-bottom: 5px;
}
.btn-special1{
font-weight: 700;
}
.btn-special1 {
background-color: #df3033;
color: #fff;
}
.btn-special1{
display: inline-block;
text-align: center;
vertical-align: middle;
cursor: pointer;
}
a{
color: #666;
text-decoration: none;
}
.goods_item_price{
color: rgb(221, 69, 69);
margin: 0px 5px;
}