有的时候仿站的时候,出现大量的垃圾代码,直接影响页面的加载速度与最终效果;
在这里分离了产品展示时候的样式认文件 直接添加到自己的css里面去就可以正常排列了;
.posts {
padding-right: 10px; padding-left: 10px; padding-bottom: 0px; overflow: hidden; width: 655px; line-height: 22px; padding-top: 0px
}
.posts p {
margin-bottom: 10px
}
.productlist {
margin-top: 20px
}
.productlist li {
padding-right: 6px; padding-left: 6px; float: left; padding-bottom: 0px; margin: 5px 0px 10px; overflow: hidden; width: 205px; padding-top: 0px; height: 190px
}
.productlist li img {
border-right: #e4e4e4 1px solid; padding-right: 2px; border-top: #e4e4e4 1px solid; padding-left: 2px; padding-bottom: 2px; border-left: #e4e4e4 1px solid; width: 200px; padding-top: 2px; border-bottom: #e4e4e4 1px solid; height: 160px
}
.productlist li .product_name {
display: block; overflow: hidden; width: 200px; line-height: 15px; height: 15px; text-align: center