課程
/前端開發(fā)
/React.JS
/React 16實(shí)現(xiàn)訂單列表及評(píng)價(jià)功能
scss樣式
2020-01-20
源自:React 16實(shí)現(xiàn)訂單列表及評(píng)價(jià)功能
正在回答
.header {
????background-color: #E9203D;
????color: #FFFFFF;
????height: 2rem;
????text-align: center;
????font-size: 1rem;
????line-height: 2rem;
????position: fixed;
????top: 0;
????width: 100%;
}
.order {
????height: 100%;
????overflow: scroll;
.orderList {
????display: block;
????padding: 2.2rem 0.5rem 0.2rem 0.5rem;
????.orderList__picContainer {
????padding-right: 0.625rem;
????display: inline-block;
????.orderList__pic {
????width: 5.625rem;
????height: 5.625rem;
????}
.orderList__content {
????width: calc(100% - 6.25rem);
????line-height: 1.75rem;
????.orderList__product {
????max-width: 15rem;
????font-weight: 700;
????color: #111111;
????padding-right: 0.5rem;
????box-sizing: border-box;
????overflow: hidden;
????text-overflow: ellipsis;
????white-space: nowrap;
.orderList__shop {
????font-size: 0.8125rem;
????color: #777777;
????padding: 0.5625rem 0.8125rem ?0;
.orderList__detail {
????display: flex;
????justify-content: space-between;
????height: 1.375rem;
????line-height: 1.375rem;
????padding-right: 0.25rem;
????.orderList__price {
????font-size: 0.875rem;
????vertical-align: 0.0625rem;
????margin-left: 0.625rem;
.orderList__price::before {
????content: '\A5';
????margin-right: 0.0625rem;
.orderList__commentContainer {
????.orderList__star--light {
????color: #E9203D;
????border-radius: 0.5rem;
textarea {
????height: 4rem;
????margin-top: 0.2rem;
????padding: 0.25rem 0.5rem;
????font-size: 0.75rem;
????color: #999999;
.orderList__btn {
????width: 5rem;
????border: 0;
.orderList__btn--red {
.orderList__btn--grey {
????background-color: #999999;
舉報(bào)
以訂單列表為案例,講授React項(xiàng)目的開發(fā)流程
1 回答樣式?jīng)]有智能提示,className屬性的樣式如何解決智能提示
2 回答請(qǐng)問樣式文件有源碼嗎?
1 回答文件格式化的快捷鍵是什么
1 回答vue的vux怎樣設(shè)計(jì),才能像你這里的redux一樣
2 回答格式化文件 已經(jīng)安裝插件了 但是按哪個(gè)快捷鍵使用呀?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2020-01-20
.header {
????background-color: #E9203D;
????color: #FFFFFF;
????height: 2rem;
????text-align: center;
????font-size: 1rem;
????line-height: 2rem;
????position: fixed;
????top: 0;
????width: 100%;
}
.order {
????height: 100%;
????overflow: scroll;
}
.orderList {
????display: block;
????padding: 2.2rem 0.5rem 0.2rem 0.5rem;
????.orderList__picContainer {
????padding-right: 0.625rem;
????display: inline-block;
????.orderList__pic {
????width: 5.625rem;
????height: 5.625rem;
????}
}
.orderList__content {
????display: inline-block;
????width: calc(100% - 6.25rem);
????line-height: 1.75rem;
????.orderList__product {
????max-width: 15rem;
????font-size: 1rem;
????font-weight: 700;
????color: #111111;
????padding-right: 0.5rem;
????box-sizing: border-box;
????overflow: hidden;
????text-overflow: ellipsis;
????white-space: nowrap;
}
.orderList__shop {
????overflow: hidden;
????text-overflow: ellipsis;
????white-space: nowrap;
????font-size: 0.8125rem;
????color: #777777;
????padding: 0.5625rem 0.8125rem ?0;
????}
.orderList__detail {
????display: flex;
????justify-content: space-between;
????height: 1.375rem;
????line-height: 1.375rem;
????padding-right: 0.25rem;
????.orderList__price {
????font-size: 0.875rem;
????color: #777777;
????vertical-align: 0.0625rem;
????margin-left: 0.625rem;
}
.orderList__price::before {
????content: '\A5';
????margin-right: 0.0625rem;
}
}
}
.orderList__commentContainer {
????.orderList__star--light {
????color: #E9203D;
????border-radius: 0.5rem;
}
textarea {
????width: 100%;
????height: 4rem;
????margin-top: 0.2rem;
????padding: 0.25rem 0.5rem;
????font-size: 0.75rem;
????color: #999999;
}
}
.orderList__btn {
????width: 5rem;
????height: 1.375rem;
????text-align: center;
????color: #FFFFFF;
????border: 0;
????font-size: 0.875rem;
}
.orderList__btn--red {
????background-color: #E9203D;
}
.orderList__btn--grey {
????background-color: #999999;
}
}