.header {
|
width: 95%;
|
border-radius: 10rpx;
|
margin: 0rpx auto;
|
padding-top: 10rpx;
|
background: #fff;
|
}
|
|
.type_box {
|
width: 100%;
|
display: flex;
|
align-items: center;
|
font-size: 26rpx;
|
color: #b2b2b2;
|
height: 70rpx;
|
background: #fff;
|
border-radius: 10rpx;
|
border: 1px solid #e6e6ea;
|
}
|
|
|
/*总体主盒子*/
|
|
.container {
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
background-color: #fff;
|
color: #939393;
|
}
|
|
/*左侧栏主盒子*/
|
|
.nav_left {
|
/*设置行内块级元素(没使用定位)*/
|
position: absolute;
|
top: 97rpx;
|
left: 0;
|
width: 150rpx;
|
height: 92%;
|
/*主盒子设置背景色为灰色*/
|
background: #f5f5f5;
|
text-align: center;
|
}
|
|
/*左侧栏list的item*/
|
|
.nav_left .nav_left_items {
|
border-bottom: 1px solid #fff;
|
/*文字14px*/
|
font-size: 26rpx;
|
position: absolue;
|
top: 0;
|
left: 0;
|
padding: 33rpx 0;
|
}
|
|
|
|
|
/*左侧栏list的item被选中时*/
|
|
.nav_left .nav_left_items.active {
|
/*背景色变成白色*/
|
background: white;
|
color: #00a39f;
|
}
|
|
.nav_left .nav_left_items.active::before {
|
border-left: 2px solid #00a39f;
|
content: "";
|
display: block;
|
position: absolute;
|
height: 100rpx;
|
margin-top: -31rpx;
|
}
|
|
.icon-xiazai17 {
|
margin-left: 10rpx;
|
font-size: 28rpx;
|
margin-top: 2rpx;
|
}
|
|
.marked {
|
margin-left: 10rpx;
|
width: 80%;
|
}
|
|
/*右侧栏主盒子*/
|
|
.nav_right {
|
/* 右侧盒子使用了绝对定位 */
|
position: absolute;
|
top: 97rpx;
|
right: 0;
|
flex: 1;
|
/*宽度75%,高度占满,并使用百分比布局*/
|
width: 590rpx;
|
height: 92%;
|
margin-left: 20rpx;
|
box-sizing: border-box;
|
background: #ffffff;
|
|
|
}
|
|
.right_top{
|
height: 155rpx;
|
}
|
|
.icongouwuche{
|
color: #000000;
|
font-size: 42rpx;
|
font-weight: bold;
|
text-align: right;
|
}
|
/*右侧栏list的item*/
|
|
.nav_right .nav_right_items {
|
/*浮动向左*/
|
float: left;
|
/*每个item设置宽度是33.33%*/
|
width: 100%;
|
height: 200rpx;
|
margin-bottom: 30rpx;
|
}
|
|
.nav_right .nav_right_items image {
|
float: left;
|
width: 240rpx;
|
height: 200rpx;
|
}
|
|
|
.sold-out{
|
width: 240rpx;
|
height: 200rpx;
|
background: rgba(0, 0, 0, 0.4);
|
position: absolute;
|
line-height: 200rpx;
|
color: #fff;
|
text-align: center;
|
font-size: 28rpx;
|
}
|
|
|
.content_right {
|
float: left;
|
width: 330rpx;
|
margin-left: 10rpx;
|
}
|
|
|
|
.nodata_text {
|
display: -webkit-box;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
word-wrap: break-word;
|
white-space: normal !important;
|
-webkit-line-clamp: 2;
|
-webkit-box-orient: vertical;
|
color: #000000;
|
font-size: 32rpx;
|
font-weight: bold;
|
|
}
|
.author{
|
font-size: 30rpx;
|
color: #939393;
|
line-height: 30rpx;
|
}
|
|
.count{
|
font-size: 22rpx;
|
color: #939393;
|
height: 55rpx;
|
display: flex;
|
justify-content :space-between;
|
}
|
|
.marked {
|
display: block;
|
margin-top: -4rpx;
|
}
|
|
page {
|
background-color: #fff;
|
}
|
|
.search_text {
|
color: #00C085;
|
font-size: 26rpx;
|
margin-right: 21rpx;
|
white-space:nowrap;
|
cursor: pointer;
|
width: 10%;
|
text-align: center;
|
}
|
|
.author{
|
color: #b2b2b2;
|
font-size: 24rpx;
|
margin: 15rpx 0rpx;
|
}
|
|
|
.carts-icon {
|
position: fixed;
|
|
z-index: 999;
|
right: 26rpx;
|
bottom: 155rpx;
|
|
width: 59rpx;
|
height: 59rpx;
|
|
line-height: 60rpx;
|
color: #fff;
|
background: #00c085;
|
border-radius: 50%;
|
}
|
|
.carts-icon .iconfont {
|
font-size: 32rpx;
|
text-align: center;
|
color: #ffffff;
|
}
|
|
.carts-icon-num {
|
position: absolute;
|
right: -2rpx;
|
width: 28rpx;
|
height: 28rpx;
|
line-height: 27rpx;
|
top: -2rpx;
|
border-radius: 50%;
|
background: #f00;
|
color: #fff;
|
font-size: 18rpx;
|
text-align: center;
|
}
|