Vue+Django 旅游网项目 首页前端实现




.home-hot-box {
padding: 0 10px;
.van-cell {

padding: 10px 0;

}
.box-main {
width: 100%; display: flex; padding-top: 10px; overflow-x: scroll;

}
.hot-item {
display: flex; flex-direction: column; width: 100px; margin-right: 10px; padding-bottom: 10px; .img { position: relative; span { position: absolute; left: 0; top: 0; display: inline-block; width: 42px; height: 20px; z-index: 10; } img { width: 100px; height: 100px; } } h5 { color: #212121; padding: 2px 0; font-size: 12px; margin: 0; } .line-price { color: #212121; font-size: 12px; .price { color: #f50; font-size: 13px; } } &:nth-child(1) .img span { background: url(/static/home/hot/top1.png) no-repeat; background-size: 100% auto; } &:nth-child(2) .img span { background: url(/static/home/hot/top2.png) no-repeat; background-size: 100% auto; } &:nth-child(3) .img span { background: url(/static/home/hot/top3.png) no-repeat; background-size: 100% auto; }

}
}

    推荐阅读